Skip to Content Skip to Menu

[SOLVED] Language plugin and language files within cb plug in

  • paxx
  • paxx
  • OFFLINE
  • Posts: 80
  • Thanks: 17
  • Karma: 0
9 years 4 months ago - 9 years 4 months ago #265544 by paxx
Hi
One question that comes to language plugin and the language files in respectively cb plug in.
In the downloaded default language plugin (en-gb) there are the language files for cb in language.php and in admin.php in addition there is a folder (cbplugin) with language files for all the cb plugin.
But in each and every plugin, there are also language files. Is this really necessary? Why are not all the language files in one place eg in the folder cbplugin or in the language files in the respective cbplugin? When you are about to translate the plugin you now must translate the files in both places.
Is there a particular reason for this?

If the problem can be solved why worry? If the problem cannot be solved, worrying will do you no good.
Last edit: 9 years 4 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265575 by krileon
You don't translate both locations. The language files included with a plugin are their defaults. Defaults should never be translated. They're there as a resource to construct a language plugin. You only need to translate them in your actual language plugin. See the below link and the CB 2.0 Primer Book for translation usage information.

www.joomlapolis.com/cb-solutions/languages


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • paxx
  • paxx
  • OFFLINE
  • Posts: 80
  • Thanks: 17
  • Karma: 0
9 years 4 months ago #265614 by paxx
Hi
Thats exactly what I did.
Downloaded the language plugin from the localization page.
Translated everything inside this, renaming it to my language and installed it.

But after the translation there was a lot of strings that were not translated.
So I had to find the untranslated strings in every one of the cb-plugin and translate them in to my language (making a new folder with my localization letters) after that it was all ok.

So back to my question - Why are not all language strings in the CB language plugin?

In this case you only have to translate them in one place, and that would be in the cb-language plugin.

If the problem can be solved why worry? If the problem cannot be solved, worrying will do you no good.

Please Log in or Create an account to join the conversation.

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
9 years 4 months ago #265635 by nant

paxx wrote:
So back to my question - Why are not all language strings in the CB language plugin?


Here are 2 reasons:

1. We do not want to load strings that are not used because people have not installed extra add-ons. It would just create a performance hit for no reason.

2. We do not want to make drastic changes to our CB language project. If we do as you state then each time a new add-on is released we would need to burden the CB language project - thus it will be very difficult for 100% translated projects to appear.

Please Log in or Create an account to join the conversation.

  • paxx
  • paxx
  • OFFLINE
  • Posts: 80
  • Thanks: 17
  • Karma: 0
9 years 4 months ago #265641 by paxx
Hi
Thank you so much for clarify this, now I know.

If the problem can be solved why worry? If the problem cannot be solved, worrying will do you no good.
The following user(s) said Thank You: nant

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum