[Resolved] Text not translated

    • August 12, 2020 at 5:16 am #6192
      C
      Auricon
      Participant

      Dear fellow devs!

      I’m using osTicketAwesome in Hungarian and some texts remain in English on the landing page:

      My system parameters are below:

      osTicket v1.14.2 // osTicket-1.14.2-Awesome-103
      PHP 7.4.8 // MySQL 10.1.45 // Apache web server

       

      Could you help, please?

    • August 12, 2020 at 1:45 pm #6193
      stevland
      Keymaster

      Oh, that really weird. It works on this end:

      https://osticketawesome.com/a/1.14.2-3/?lang=hu

      Have you tried clearing your browser cache?

    • August 13, 2020 at 1:08 am #6194
      C
      Auricon
      Participant

      Hmm, it really is weird…I have not cleared cache, but I will give it a go, and see what happens.

    • August 13, 2020 at 4:16 am #6195
      C
      Auricon
      Participant

      Unfortunately clearing cache did not solve anything 🙁

    • August 13, 2020 at 9:58 am #6196
      stevland
      Keymaster

      Are you using the Hungarian language pack that came with osTicket Awesome?

      One easy way to fix this would be to open /index.php replace line 76…

      <?php echo __('We provide archives and history of all your current and past support requests complete with responses.');?>

      …with your own Translated text.

      But I would be curious to take a look at your installation and figure out what the actual issue is, if you would be comfortable providing me with temporary access.

      If so, please fill out this form with as much information as possible. (I won’t need an osTicket Administrator account for this, but I will need at least one connection method: cPanel/Plesk, FTP or SSH).

    • August 14, 2020 at 1:17 am #6202
      C
      Auricon
      Participant

      Thank you, I submitted the form for you.

    • August 17, 2020 at 1:10 pm #6212
      stevland
      Keymaster

      Thank you for doing that. I will have a look in the next few hours and report back.

    • August 17, 2020 at 9:13 pm #6216
      stevland
      Keymaster

      Wow. I honestly don’t know what the problem was. All of your files are intact. I couldn’t find any reason that those translations shouldn’t work.

      There are two very small possibilities that come to mind.

      I wonder if you are running any caching software on your server, in order to speed things up? Sometimes caching software can conflict with osTicket’s translation functions.

      I also notice that you are running PHP 7.4. You should consider downgrading to 7.3 as osTicket does not yet support 7.4 and running it can cause weird things to happen.

      In the end I had to give up trying to understand this issue and I simply hard-coded the translations into the /index.php file for you.

      In the future after you upgrade if those translations stop working again copy /support-old/index.php to /support and you’ll be good-to-go.

    • August 18, 2020 at 12:46 am #6217
      C
      Auricon
      Participant

      Dear Stevland!

      Thank you for your efforts. Due to other plugins it is not an option to downgrade to php 7.3, but this hardcoded solution is more than good for us for the time being.

    • January 31, 2021 at 10:35 pm #7365
      J
      jotek
      Participant

      Hello,

      I have a similar problem with the german translation.

      The texts are not translated, similar to the hungarian version. I tried to add a custom translation and added this line to

      include\i18n\de\LC_MESSAGES\messages.mo.php

      ‘Create New Ticket2’ => ‘Neues Ticket eröffnen’,

      But its not recognized as a new translation (as you can see in the screenshot). I downgraded to php 7.3 as you recommended, but its the same result.

      Can you help me?

      Thank you very much!

      I can provide you SFTP access

    • February 1, 2021 at 1:11 am #7366
      S
      Shimo
      Participant

      Hey jotek,

      I dont understand, why you edited the source (Create New Ticket2), don’t do that. Change that back to “Create New Ticket”

      You can fix this very easy by yourself – you were already on the right track (/include/i18n/de/LC_MESSAGES/messages.mo.php):

      1. Should be line 1739 = ‘Open a New Ticket’ => ‘deine Übersetzung hier’,
      2. Should be line 154 = ‘Please provide as much detail as possible so we can best assist you. To update a previously submitted ticket, please login.’ =>’deine andere Übersetzung hier‘,

       

You must be logged in to reply to this topic.