summaryrefslogtreecommitdiff
path: root/scripts/sync-locales.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-24 22:51:30 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-24 22:51:30 -0400
commit90e06162999c8ec7fa9bcfa391800f7907419d9b (patch)
treef0f8d4a760f25c4f7773e0a1851031db6b08b9f2 /scripts/sync-locales.php
parent180efb962c6fc4da47ed39e60db137d63ffaad5b (diff)
Rename Locales and Templates folders to be more consistent
Diffstat (limited to 'scripts/sync-locales.php')
-rwxr-xr-xscripts/sync-locales.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/sync-locales.php b/scripts/sync-locales.php
index 00d6c897..181686b7 100755
--- a/scripts/sync-locales.php
+++ b/scripts/sync-locales.php
@@ -2,7 +2,7 @@
<?php
$reference_lang = 'fr_FR';
-$reference_file = 'app/Locales/'.$reference_lang.'/translations.php';
+$reference_file = 'app/Locale/'.$reference_lang.'/translations.php';
$reference = include $reference_file;
@@ -30,11 +30,11 @@ function update_missing_locales(array $reference, $outdated_file)
}
-foreach (new DirectoryIterator('app/Locales') as $fileInfo) {
+foreach (new DirectoryIterator('app/Locale') as $fileInfo) {
if (! $fileInfo->isDot() && $fileInfo->isDir() && $fileInfo->getFilename() !== $reference_lang) {
- $filename = 'app/Locales/'.$fileInfo->getFilename().'/translations.php';
+ $filename = 'app/Locale/'.$fileInfo->getFilename().'/translations.php';
echo $fileInfo->getFilename().' ('.$filename.')'.PHP_EOL;