Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Matthias on March 12, 2019, 09:45:49 AM

Title: SMF Mobile Theme language strings
Post by: Matthias on March 12, 2019, 09:45:49 AM
Hello,

I have translated the text strings in the file Themes/SMF4Mobile20/languages/ThemeStrings.english.php to german language and saved it as ThemeStrings.german.php
After I cleared the cache on the mobile device, the language is still English. The theme settings in the admin center are also Englisch.
Is there something more, that I have to do?
Title: Re: SMF Mobile Theme language strings
Post by: vbgamer45 on March 12, 2019, 09:48:19 AM
Are you using utf8 you might also need to save it as  ThemeStrings.german-utf8.php
Title: Re: SMF Mobile Theme language strings
Post by: Matthias on March 12, 2019, 09:50:26 AM
I don't use UTF8
Title: Re: SMF Mobile Theme language strings
Post by: vbgamer45 on March 12, 2019, 09:57:58 AM
Do you have more than one SMF4Mobile theme in your themes folder?
Title: Re: SMF Mobile Theme language strings
Post by: Matthias on March 12, 2019, 10:02:20 AM
There are the following themes in the themes folder:

core
default
mytheme01
mytheme02
SMF4Mobile20
Title: Re: SMF Mobile Theme language strings
Post by: vbgamer45 on March 12, 2019, 10:20:38 AM
If you copy the contents of your file to .english.php file and  clear your cache does it work?
Title: Re: SMF Mobile Theme language strings
Post by: Matthias on March 12, 2019, 10:27:22 AM
Yes, it works
Title: Re: SMF Mobile Theme language strings
Post by: Matthias on March 14, 2019, 05:11:59 PM
Quote from: vbgamer45 on March 12, 2019, 10:20:38 AM
If you copy the contents of your file to .english.php file and  clear your cache does it work?

That's a quick and dirty thing for testing, but not a solution.
Title: Re: SMF Mobile Theme language strings
Post by: vbgamer45 on March 14, 2019, 05:14:53 PM
What does your language files look like for german? Make sure you have exact same file ending and how the file is capitalized.
Title: Re: SMF Mobile Theme language strings
Post by: Matthias on March 14, 2019, 05:30:23 PM
Ah, ok because of that you brought me to an idee.

For german language there are two versions available, ,,german" and ,,german_informal".
I test this and then give a feedback.
Title: Re: SMF Mobile Theme language strings
Post by: Matthias on March 15, 2019, 07:42:24 AM
I renamed the file to ThemeStrings.german_informal.php
Now it works. Thanks for support.