1. Jeremy Magne
  2. CTransifex
  3. Friday, 19 April 2013
  4.  Subscribe via email
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]
Responses (2)
Accepted Answer Pending Moderation
agree with that feature but only if this would be an option... I want an option to not download all languages and for now it would be done by not mapping it!! :)
  1. more than a month ago
  2. CTransifex
  3. # 1
Daniel Dimitrov
Support team
Accepted Answer Pending Moderation
Okay, but what is the use to have en mapped to en? There is no such language pack in joomla? So installing those lang files won't bring anything.
Please if you use our extensions be so kind and review them at JED
Matukio | Hotspots Pro | CComment Pro
  1. more than a month ago
  2. CTransifex
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Last questions

Bug with front-end submission and table not having
Hi, i think i found a problem. When trying to edit a hotspot from front-end ...
2 Replies
Posted on Wednesday, 15 March 2023
Buchung PayPal wird nicht als bezahlt markiert
Hallo Daniel, ich hab jetzt auch nochmal eine Frage. Wir nutzen Matukio nu...
17 Replies
Posted on Thursday, 09 November 2023
Complete Uninstall to Work in J4??
We have recently updated a site from Joomlav3 to v4 (4.4.2). Now when we go to m...
4 Replies
Posted on Tuesday, 30 April 2024
  • New
  • verschiedene URL's für Kursübersicht einer Kategor
    Hallo, ich habe eine Frage in Bezug auf SEO: ein externer Spezialist macht die...
    1 Replies
    Posted on Monday, 29 April 2024
  • New
  • Google no index für bestimmte Seiten/Details
    Hallo ich habe eine kleine Frage: wo kann ich einstellen, dass Google die Seite...
    1 Replies
    Posted on Wednesday, 24 April 2024