Hi,
I noticed that languages without locale were not generated. Of course, I could have added language translations to the config like en:en, es:es, fr:fr...
I figured that a simple change in the code could ease this and auto accept languages without locale
so in file /administrator/components/com_ctransifex/helpers/transifex.php
[code type=php]class ctransifexHelperTransifex
{
[...]
public static function getJLangCode($transifexLang, $projectConfig){
$languages = self::getLangmap($projectConfig);
/***********************/
/* CUSTOM CODE - START */
/* Auto accept languages with no locale (en, fr, es...) */
/***********************/
if (strlen($transifexLang) == 2) {
$languages[strtolower($transifexLang)] = strtolower($transifexLang);
}
/***********************/
/* CUSTOM CODE - END */
/***********************/
[...]
}
[...]
}
[/code]
- Jeremy Magne
-
- CTransifex
- Friday, 19 April 2013
- Subscribe via email
- Page :
- 1
There are no replies made for this post yet.
However, you are not allowed to reply to this post.
However, you are not allowed to reply to this post.
Last questions
Is Ccomment still being supported? It's time for my Pro renewal but I haven't se...
0 Replies
Posted on Thursday, 14 August 2025
We have been using Matukio for quite some time now. Unfortunately, we have been ...
3 Replies
Posted on Sunday, 03 August 2025
Hello,
I’m experiencing an issue when trying to submit a comment on my site u...
0 Replies
Posted on Sunday, 10 August 2025
Running Hotspots Pro 6.0.13 on Joomla 4.4.13 and want to upgrade to Joomla 5.3.1...
2 Replies
Posted on Friday, 04 July 2025
Hi,
On Hotspots extension :
1) is it possible to add our own map layer / v...
0 Replies
Posted on Thursday, 03 July 2025