Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Multilanguage is not working on my site.

Asked Modified Viewed 1,558 times
D
Dado
D
Dado 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hello. I need help. I'm having a problem with the multilanguages on my website. I don't know why.I don't know since when. But exept the English language, no other language works correctly for me . It's hard to explain, so I'm sending screenshots of my problem.


iili.io/HBrEhjR.png

The page has a problem displaying the flag icon.


iili.io/HBrENCN.png

...and in the administration, complete translations of the texts are missing

Could someone give me advice?
Edited by Dado on 04-12-2022 08:12,
0 replies

10 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

See https://translate.phpfusion.com/ , you are missing some translation in the lang pack.
0 replies
D
Dado
D
Dado 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Thanks for your reply and help, but the multilingual still doesn't work. I tried to download other languages, but they don't work either. Any other ideas?

iili.io/HCUzK5x.png
0 replies
A
Apis
A
Apis 12
  • Junior Member, joined since
  • Contributed 42 posts on the community forums.
  • Started 13 threads in the forums
answered
Junior Member

In the Admin Panel->Settings->Language settings, you must enable the languages ​​that are to be available. Not enabled, they don't work.
0 replies
D
Dado
D
Dado 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I have all these languages activated.
0 replies
A
Apis
A
Apis 12
  • Junior Member, joined since
  • Contributed 42 posts on the community forums.
  • Started 13 threads in the forums
answered
Junior Member

I used another solution which is quite effective. I created a new panel with the following content:
<div id="google_translate_element" align="center"></div>
<script>
   function googleTranslateElementInit() {   
   new google.translate.TranslateElement({pageLanguage: 'pl', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, includedLanguages: 'en,de,cs,sk,pl'}, 'google_translate_element');
   }
</script>
<script src="https://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>

I made the panel visible on all pages. You can also include the code in your theme.

Of course, you need to enter the default language (pageLanguage) of the page and the languages ​​that are to be offered (includedLanguages: 'en,de,cs,sk,pl') in the code.
Edited by Apis on 11-12-2022 08:55,
0 replies
C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

Where did you get the language packs?

Have a look at this page: https://github.com/PHPFusion/locales

There are 2 versions of the version 9.
0 replies
D
Dado
D
Dado 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I have already solved the problem with the missing texts. I compared the English translation with the Slovak one and found out that they have different markings. While in the English markings there are only numbers, in the Slovak translation there is admins_ before the numerical markings. So I did a simple thing. In the Slovak version of the translation, I simply deleted admins_ in front of each translation and it works. I am attaching a screenshot as an example.

i.ibb.co/0Y8HS8k/EN-SK-locale-problem.jpg



But now I'm struggling with another problem. It does not show the Slovak flag on the page when switching languages. The image does not load. As if it wasn't even uploaded. But he is on FTP. But the site has a problem reading it.

... and excuse my unprofessional expressions. I'm not a programmer.
Edited by Dado on 17-12-2022 22:23,
0 replies
F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Right-click on the image and get some info of what it is named and from where it tries to load, and you will see what you need to do.
Edited by Falk on 18-12-2022 22:40,
0 replies
D
Dado
D
Dado 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

The browser displays an error : The image "https://*****.sk/locale/Slovak/Slovak-s.png" cannot be displayed because it contains errors.
0 replies
— 1 month later —
D
Dado
D
Dado 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

I don't know where the problem was, but i fixed it. I thought the problem would be in the image itself and I was partly true. I downloaded images (Slovak.png and Slovak-s.png) from FTP to computer but they wouldn't open in my computer. So I tried to fix/edit them in Photoshop. Photoshop gave me the following message: „PNG file corrupted by ASCII conversion“. I created in Photoshop new, custom images Slovak.png and Slovak-s.png and I uploaded them to the server. These images could be opened on the computer, but still did not work on the server.
I finally solved the problem by renaming the image Slovak-s.png to Slovak-small.png and editing theme.php with new photo name.

echo '<img class="m-r-5" src="'.BASEDIR.'locale/'.$language_folder.'/'.$language_folder.'-small.png" alt="'.$language_folder.'"/> ';


Now it works.
0 replies

Category Forum

Settings - 9

Labels

Statistics

  • Views 0 views
  • Posts 10 posts
  • Votes 0 votes
  • Topic users 4 members

4 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,841 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
A
A
Apis 12
  • Junior Member, joined since
  • Contributed 42 posts on the community forums.
  • Started 13 threads in the forums
D
D
Dado 10
  • Newbie, joined since
  • Contributed 6 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet