Untraslated string in privacy module (back-end)

General questions regarding the use of languages in Joomla! 3.x.

Moderators: infograf768, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
andrius-b
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Sep 19, 2010 11:03 am

Untraslated string in privacy module (back-end)

Post by andrius-b » Wed Aug 19, 2020 9:50 am

Hello.

In back-end administrator dashboard privacy module instead of translation is shown its key, i.e. "COM_PRIVACY_DASHBOARD_BADGE_TOTAL_REQUESTS".

This key is plural in translation file and is translated, but not applied.
Maybe some php source has to be fixed.
Pav_077.png
You do not have the required permissions to view the files attached to this post.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19019
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Untraslated string in privacy module (back-end)

Post by infograf768 » Wed Aug 19, 2020 11:01 am

I can't reproduce here in English en-GB
Screen Shot 2020-08-19 at 12.59.35.png
Please attach here your com_privacy ini language file.
You do not have the required permissions to view the files attached to this post.
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19019
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Untraslated string in privacy module (back-end)

Post by infograf768 » Wed Aug 19, 2020 11:07 am

If it is Lithuanian, it looks like it is missing most strings in that file. Have you created then yourself?
Please contact Lithuanian Translator
https://community.joomla.org/translatio ... html#lt-lt
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

andrius-b
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Sep 19, 2010 11:03 am

Re: Untraslated string in privacy module (back-end)

Post by andrius-b » Wed Aug 19, 2020 11:21 am

Yes, I forgot to mention that translation of Lithuanian pack is completed 100% in Crowdin, I'm part of translation team. I just uploaded all translated files and it seems that all translations are OK (even from the same file), except this one.This is language pack zip if it can be of any use - https://www.dropbox.com/s/02e4bqrzq9y2c ... 9.zip?dl=0

SharkyKZ
Joomla! Ace
Joomla! Ace
Posts: 1810
Joined: Fri Jul 05, 2013 10:35 am
Location: Parts Unknown

Re: Untraslated string in privacy module (back-end)

Post by SharkyKZ » Wed Aug 19, 2020 3:24 pm

Looks like the pack is using word-suffixed plural constants (e.g. _ONE instead of _1) but localise.php was not updated to support them.

andrius-b
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Sep 19, 2010 11:03 am

Re: Untraslated string in privacy module (back-end)

Post by andrius-b » Wed Aug 19, 2020 3:56 pm

Is there anywhere instructions of localise.php localization available?
I saw "ONE" in it, but thought it has something to do with "ONE" tab in Crowdin and left it as it is.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19019
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Untraslated string in privacy module (back-end)

Post by infograf768 » Thu Aug 20, 2020 7:00 am

Please ask your Team leader to post the question in the Translations Teams private forum.
This Crowdin change has been discussed there: viewtopic.php?f=54&t=979890

In your case, this should work:

Code: Select all

	public static function getPluralSuffixes($count)
	{
		if ($count == 0)
		{
			return array('0');
		}
		elseif ($count % 10 == 1 && $count % 100 != 11)
		{
			return array('ONE', '1');
		}
		elseif ($count % 10 >= 2 && $count % 10 <= 9 && $count%100 <= 10 || $count%100 > 20)
		{
			return array('FEW', '2');
		}
		else
		{
			return array('MANY');
		}
	}
Don't forget to modify both localise.php (site and admin)
Jean-Marie Simonet / infograf · http://www.info-graf.fr
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

User avatar
Bakual
Joomla! Guru
Joomla! Guru
Posts: 950
Joined: Sun Dec 13, 2009 9:00 pm
Location: Switzerland
Contact:

Re: Untraslated string in privacy module (back-end)

Post by Bakual » Thu Aug 20, 2020 8:51 am

It's exactly what JM wrote, you need to add 'FEW' as a possible suffix for those plural form.
I went ahead and did that for you in Crowdin and started a new build. So it should be ready for testing in 5 minutes or so.

andrius-b
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Sep 19, 2010 11:03 am

Re: Untraslated string in privacy module (back-end)

Post by andrius-b » Thu Aug 20, 2020 10:42 am

Thank you very much!


Post Reply

Return to “Language - Joomla! 3.x”