ElkArte Community

Extending Elk => Localization => Topic started by: Jorin on June 25, 2014, 03:07:09 am

Title: "global $editortxt;" and so on necessary?
Post by: Jorin on June 25, 2014, 03:07:09 am
I'm working with the language files and some of them have code like this, some not:

Code: [Select]
global $editortxt;

What is this for?

I downloaded your german language pack and there are differences between the original english file and the german translated one. For example, in index.english.php you will find:

Code: [Select]
// Version: 1.0; index

global $forum_copyright;

// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)

in index.german.php this part looks like:

Code: [Select]
// Version: 1.0; index

global $forum_copyright, $forum_version, $webmaster_email, $scripturl, $context, $boardurl;

// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)

You see the difference? Shouldn't this be the same?  :o  Should I better check the files and copy these codes from the english ones into the german files?



Title: Re: "global $editortxt;" and so on necessary?
Post by: emanuele on June 25, 2014, 04:04:30 am
From where did you download the package?
If I download from: http://translations.elkarte.net/
the files look exactly the same as the English one.

If you have that code you likely downloaded an old version of the file... maybe a browser cache issue?
Try cleaning the cache or use another browser first.
Title: Re: "global $editortxt;" and so on necessary?
Post by: Jorin on June 25, 2014, 04:37:20 am
I got the files from @TE a few days ago. Thought they were from your download section?

I will check this, thanks.