-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Development going on for below features:
* Apps architecture * Multi language support * Reply via email
- Loading branch information
Sivachidambaram. S
committed
Jan 11, 2016
1 parent
24d9187
commit 5ae5249
Showing
278 changed files
with
4,730 additions
and
1,671 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* Task for filling language in JSON | ||
*/ | ||
unset($argv[0]); | ||
$t = array(); | ||
foreach($argv as $folder) { | ||
$files = glob($folder, GLOB_BRACE); | ||
foreach ($files as $file) { | ||
$contents = file_get_contents($file); | ||
if (preg_match_all('/i18next.t\([\"|\'](.*)[\"|\'][\)|\,]/msU', $contents, $matches)) { | ||
foreach($matches[1] as $v) { | ||
$t[$v] = $v; | ||
if (preg_match('/{{count}}/', $v, $count_matches)) { | ||
$t[$v . '_plural'] = $v . 's'; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
ksort($t); | ||
file_put_contents('client/locales/en/translation.json', json_encode($t, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.