aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/develop/lang_migrate_help_lang.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-11-28 11:36:05 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-11-28 11:36:05 +0100
commit0c66d4816a319c341f6361b8714929779fa6a049 (patch)
tree61e551402e484775bb2138dd928409b8ced6310f /phpBB/develop/lang_migrate_help_lang.php
parent941d138650c1f500f68ff7a12e73d08c6a91aaf4 (diff)
downloadforums-0c66d4816a319c341f6361b8714929779fa6a049.tar
forums-0c66d4816a319c341f6361b8714929779fa6a049.tar.gz
forums-0c66d4816a319c341f6361b8714929779fa6a049.tar.bz2
forums-0c66d4816a319c341f6361b8714929779fa6a049.tar.xz
forums-0c66d4816a319c341f6361b8714929779fa6a049.zip
[ticket/14317] Make it easier to change the language iso tag
PHPBB3-14317
Diffstat (limited to 'phpBB/develop/lang_migrate_help_lang.php')
-rw-r--r--phpBB/develop/lang_migrate_help_lang.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/phpBB/develop/lang_migrate_help_lang.php b/phpBB/develop/lang_migrate_help_lang.php
index d5a2573ee0..81b71398e1 100644
--- a/phpBB/develop/lang_migrate_help_lang.php
+++ b/phpBB/develop/lang_migrate_help_lang.php
@@ -11,18 +11,13 @@
*
*/
-//
-// Security message:
-//
-// This script is potentially dangerous.
-// Remove or comment the next line (die(".... ) to enable this script.
-// Do NOT FORGET to either remove this script or disable it after you have used it.
-//
-#die("Please read the first lines of this script for instructions on how to enable it");
+define('LANGUAGE_TO_MIGRATE', 'en');
+
+# NO CHANGES BELOW THIS LINE
define('IN_PHPBB', true);
$phpEx = substr(strrchr(__FILE__, '.'), 1);
-$phpbb_root_path='./../';
+$phpbb_root_path = './../';
include($phpbb_root_path . 'common.'.$phpEx);
$help_bbcode = load_help('bbcode');
@@ -239,7 +234,7 @@ trigger_error('Successfully migrated help_bbcode and help_faq to help/bbcode and
function load_help($help)
{
global $phpbb_root_path;
- include($phpbb_root_path . 'language/en/help_' . $help . '.php');
+ include($phpbb_root_path . 'language/' . LANGUAGE_TO_MIGRATE . '/help_' . $help . '.php');
return $help;
}
@@ -250,7 +245,7 @@ function load_help($help)
function write_help($help, array $lang)
{
global $phpbb_root_path;
- $fp = fopen($phpbb_root_path . 'language/en/help/' . $help . '.php', 'wb');
+ $fp = fopen($phpbb_root_path . 'language/' . LANGUAGE_TO_MIGRATE . '/help/' . $help . '.php', 'wb');
fwrite($fp, get_language_file_header());
fwrite($fp, '$lang = array_merge($lang, array(' . "\n");