diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-06-13 19:39:04 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-06-13 19:39:04 +0000 |
commit | 1e666c34cc6d789c285675643535608a16c91511 (patch) | |
tree | 2a093902dc1c199a7ea854328d849b1df84d5f99 | |
parent | 2b010ef522218ff951ac2d040e9b3bf2749c80e7 (diff) | |
download | brdo-1e666c34cc6d789c285675643535608a16c91511.tar.gz brdo-1e666c34cc6d789c285675643535608a16c91511.tar.bz2 |
#150554 suggested by kkaefer, patch by me: rename 'po' folders to the more user friendly 'translations' name
-rw-r--r-- | includes/install.inc | 2 | ||||
-rw-r--r-- | includes/locale.inc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/includes/install.inc b/includes/install.inc index 7387f7c41..483483813 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -578,7 +578,7 @@ function st($string, $args = array()) { if (!isset($locale_strings)) { $locale_strings = array(); - $filename = './profiles/'. $profile .'/po/'. $install_locale .'.po'; + $filename = './profiles/'. $profile .'/translations/'. $install_locale .'.po'; if (file_exists($filename)) { require_once './includes/locale.inc'; $file = (object) array('filepath' => $filename); diff --git a/includes/locale.inc b/includes/locale.inc index 49677a8bc..f0aba35ea 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -2372,7 +2372,7 @@ function locale_batch_by_language($langcode, $finished = '_locale_batch_installe // with names ending with $langcode.po. This allows for filenames // like node-module.de.po to let translators use small files and // be able to import in smaller chunks. - $files = array_merge($files, file_scan_directory(dirname($component->filename) .'/po/', '(^|\.)'. $langcode .'\.po$', array('.', '..', 'CVS'), 0, FALSE)); + $files = array_merge($files, file_scan_directory(dirname($component->filename) .'/translations/', '(^|\.)'. $langcode .'\.po$', array('.', '..', 'CVS'), 0, FALSE)); } return _locale_batch_build($files, $finished); @@ -2442,7 +2442,7 @@ function locale_batch_by_component($components, $finished = '_locale_batch_syste // as $langcode.po or with names ending with $langcode.po. This allows // for filenames like node-module.de.po to let translators use small // files and be able to import in smaller chunks. - $files = array_merge($files, file_scan_directory(dirname($component->filename) .'/po/', '(^|\.)('. $language_list .')\.po$', array('.', '..', 'CVS'), 0, FALSE)); + $files = array_merge($files, file_scan_directory(dirname($component->filename) .'/translations/', '(^|\.)('. $language_list .')\.po$', array('.', '..', 'CVS'), 0, FALSE)); } } return _locale_batch_build($files, $finished); |