Skip to content

Commit

Permalink
Extract strings for Focus android, clean up scripts (#1024)
Browse files Browse the repository at this point in the history
* Extract strings for Focus in android-l10n
* Composer fixes
  • Loading branch information
flodolo authored Jan 22, 2023
1 parent f154bdb commit ad3fe46
Show file tree
Hide file tree
Showing 8 changed files with 168 additions and 100 deletions.
10 changes: 5 additions & 5 deletions app/classes/Transvision/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Project
*/
'meta' => true,
],
'firefox_ios' => [
'firefox_ios' => [
'git_repository' => 'firefoxios-l10n',
'locale_mapping' => [
'bn-IN' => 'bn',
Expand All @@ -63,11 +63,11 @@ class Project
'source_type' => 'mixed',
'variable_patterns' => ['dtd', 'ftl', 'l10njs', 'printf', 'properties'],
],
'comm_l10n'=> [
'comm_l10n' => [
'source_type' => 'mixed',
'variable_patterns' => ['dtd', 'ftl', 'l10njs', 'printf', 'properties'],
],
'mozilla_org'=> [
'mozilla_org' => [
'git_repository' => 'www-l10n',
'git_branch' => 'master',
'pontoon_project' => 'mozillaorg',
Expand All @@ -83,7 +83,7 @@ class Project
'source_type' => 'xml',
'variable_patterns' => ['xml_android'],
],
'vpn_client' => [
'vpn_client' => [
'git_repository' => 'mozilla-vpn-client-l10n',
'underscore_locales' => true,
'pontoon_project' => 'mozilla-vpn-client',
Expand All @@ -104,7 +104,7 @@ class Project
'comm_l10n',
],
// Products using Git
'git' => [
'git' => [
'android_l10n', 'firefox_ios', 'mozilla_org', 'vpn_client',
],
// Products using free text search on Pontoon
Expand Down
2 changes: 1 addition & 1 deletion app/classes/Transvision/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ public static function redYellowGreen($number)
*/
public static function pluralize($count, $text)
{
return $count . (($count == 1) ? (" {$text}") : (" ${text}s"));
return $count . (($count == 1) ? (" {$text}") : (" {$text}s"));
}

/**
Expand Down
Loading

0 comments on commit ad3fe46

Please sign in to comment.