Topic-icon Notification mail and messages in Swedish

Active Subscriptions:

None
10 years 8 months ago - 10 years 8 months ago #35912 by [email protected]
Hello

I am struggling to get the Swedish translations to show in my front end as well as in the notification emails. I have so far entered sv_SE in the facebook API language field but no change. I still get English. I have looked in the language/sv-SE folder to be sure the translated file is there (sv-SE.com_jfbconnect.ini) and it is. I have also checked to see that my FB account is set to Swedish. I edited the en_GB language file to see if it was infact that file being used and it was. So I am kind of stuck. How do I get it to change language??
Last edit: 10 years 8 months ago by [email protected].
The topic has been locked.
Support Specialist
10 years 7 months ago #35937 by alzander
Johan,
Updating the Facebook Locale won't affect the language strings that JFBConnect loads in Joomla. That simply forces Facebook to load the Swedish language for it's social functions instead of using the user's default. That should probably be just fine on your site.

Looking at our code, it looks like we may have missed the loading of Joomla language strings in certain cases. If you're ok with making a minor edit, we'd love to hear if this fixes the issue for you. To do so, please edit the /components/com_jfbconnect/jfbconnect.php file. At the very top, you'll see:
defined('_JEXEC') or die('Restricted access');

$input = JFactory::getApplication()->input;
Please edit that by adding the SCStringUtilities... line as below:
defined('_JEXEC') or die('Restricted access');

SCStringUtilities::loadLanguage('com_jfbconnect');
$input = JFactory::getApplication()->input;
Please let me know if that helps. We're working on a minor bug-fix release, v5.1.1, due out at the end of this week. If this fixes you're problem, we'll make sure it gets into that release.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #35954 by johnor
Hi and thanks for taking a look at this issue.

I just tried the code you suggested but unfortunately its still not picking up the Swedish language file.
The topic has been locked.
Support Specialist
10 years 7 months ago #35965 by alzander
Johan,
We're still looking into what may be happening. Can you let me know specifically what text isn't working for you? When you say email notification, do mean the message sent when a new user registers, a notification on a new Like or Comment, or something else?

Can you also let me know if there are any Swedish strings that *are* working? Knowing if some are working will help understand things a little better as well.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #35980 by johnor
This system message "Facebook profile successfully connected" and also the registration confirmation mail comes from the file en-GB.com_jfbconnect.ini and not from the sv-SE.com_jfbconnect.ini as they should be. I am seeing some Swedish strings but I think they may belong to SCLogin.
The topic has been locked.
Support Specialist
10 years 7 months ago #36032 by alzander
Johan,
Sorry for the confusion on this. I was able to look into the issue a bit further and it basically turns out that the language strings for Swedish are simply not complete. We rely on our users to contribute language files for the different languages (we don't know them all), and there have only been a few strings contributed for Swedish. When a string isn't available in the selected language, JFBConnect will fallback to the English strings, since that's all we have.

If you want to create the proper strings, you can open the sv-SE.com_jfbconnect language file and you'll see a few of the lines that you're mentioning look like:

; COM_JFBCONNECT_MAP_USER_SUCCESS="%s profile successfully connected."

To update, remove the opening semi-colon and space and then update the string for Swedish and how you want it to appear on your site.

If you create a new language file for Swedish and want to contribute it back, we'll gladly include it in the next release.

I hope that helps explain, and thanks for your feedback,
Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #36076 by johnor
Oh. I have already translated the strings that were missing but couldn't figure out why they weren't showing up in the frontend. I SHOULD have noticed that pesky semicolon...my fault. Anyway, I am working on the swedish translation over at Transifex, hopefully I can contribute with at least some parts.
The topic has been locked.
Support Specialist
10 years 7 months ago #36082 by alzander
Johan,
Awesome! So glad to hear that got you going, and very happy to hear you're using Transifex to contribute back. We pull in updates before each new release, so those will be in the next release. We just got out v5.1.1 this morning as well which has some minor fixes for other issues, just so you know.

I hope that helps, and thanks for your feedback and patience while I was leading you down the wrong path :)

Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago - 10 years 7 months ago #37170 by joomleb
Hi Alex, Joomla 3.1.5 + JFBConnect 5.1.1 - I have few questions about:

1 - I have back some messages during Facebook registration and during Google+ connection (I attach the images). Do they depend on "may have missed the loading of Joomla language strings in certain cases" or "When a string isn't available in the selected language" (in my case Italian) ?

2 - To be sure, I have to go to the /language folder and, Please, Are these the only two files I have to check and edit? :
/language/en_GB/en_GB.com_jfbconnect.ini
/language/en_GB/en_GB.mod_sclogin.ini

3 - You manage translations with your Transiflex project www.transifex.com/projects/p/jfbconnect/
Please, How is the best way to manage translations with transiflex ? (I never used it before)

4 - You say: "When a string isn't available in the selected language, JFBConnect will fallback to the English strings". Why fallback to the English string instead to the English tranlation? I think is too better see "profile successfully connected." instead of see "COM_JFBCONNECT_MAP_USER_SUCCESS" that really seem an error message to the user!

Many Thanks for support
File Attachment:


File Attachment:
Last edit: 10 years 7 months ago by joomleb.
The topic has been locked.
Support Specialist
10 years 7 months ago #37201 by alzander
JFBConnect should fall back to the English *translated* string, not the key value.

For the strings you're looking for, look at the files you mentioned, /language/en_GB/en_GB.com_jfbconnect.ini but also the language string for whatever language you are using. See if the key COM_JFBCONNECT_THANKS_FOR_SIGNING_IN exists in there, and, if so, make sure there is no semi-colon ; at the beginning of it.

Regarding Transifex, don't worry about it for now. That's useful for sharing your strings back to us.

Thanks,
Alex
The topic has been locked.