Skip to content

Commit

Permalink
Pull latest translations
Browse files Browse the repository at this point in the history
  • Loading branch information
colymba committed Sep 15, 2014
1 parent d6a1ab8 commit 188346d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 1 addition & 5 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# DO NOT MODIFY. Generated by build task.
# Contribute here: https://www.transifex.com/projects/p/gridfieldbulkeditingtools/
# DO NOT MODIFY. Generated by build task.
# Contribute here: https://www.transifex.com/projects/p/gridfieldbulkeditingtools/
en:
GRIDFIELD_BULK_UPLOAD:
FINISH_BTN_LABEL: Finish
Expand All @@ -20,4 +16,4 @@ en:
TOGGLE_ALL_LINK: Show/Hide all
SAVE_BTN_LABEL: Save all
CANCEL_BTN_LABEL: Cancel
SAVE_RESULT_TEXT: '{count} {class} saved successfully.'
SAVE_RESULT_TEXT: '{count} {class} saved successfully.'
3 changes: 2 additions & 1 deletion lang/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ fr:
HEADER_TEXT: Edition de {count} {class}
TOGGLE_ALL_LINK: Afficher/Masquer tout
SAVE_BTN_LABEL: Sauvegarder tout
CANCEL_BTN_LABEL: Annuler
CANCEL_BTN_LABEL: Annuler
SAVE_RESULT_TEXT: '{count} {class} sauvegardés avec succès.'
11 changes: 10 additions & 1 deletion tasks/BuildTransifexTranslations.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,18 @@ private function saveJSTranslation($locale, $json)
public function saveYMLTranslation($locale, $yml)
{
echo "Saving $locale.yml\n";

if ($locale !== 'en')
{
$content = $this->getBanner('yml') . $yml;
}
else{
$content = $yml;
}

file_put_contents(
$this->ymlDir . DIRECTORY_SEPARATOR . $locale . '.yml',
$this->getBanner('yml') . $yml
$content
);
}

Expand Down

0 comments on commit 188346d

Please sign in to comment.