Skip to Content Skip to Menu

Confirmation question regarding language files

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 6 months ago #277383 by timstohr
Hey Kyle,

Just need a confirmation for me to understand the processes:

1)Please confirm that the language plugins can basically be considered like the translation dictionary for the machine language to front-end language (stupid expression but I forgot the term) and

2) What are numbers at the end of the CAPITALS? Or are they just differentiators?
3) Just to confirm... if all two questions above are yes, I change the stuff after => ?

'YOU_DO_NOT_HAVE_SUFFICIENT_PERMISSIONS_TO_MESSAGIN_9254f7' => 'You do not have sufficient permissions to messaging in this group.',

4)How can I find the "machine language" of the stuff I want to change? (in this case all of the CB emails). Any shortcuts than going through all the language files?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49441
  • Thanks: 8466
  • Karma: 1465
9 years 6 months ago #277395 by krileon

1)Please confirm that the language plugins can basically be considered like the translation dictionary for the machine language to front-end language (stupid expression but I forgot the term) and

It's just like Joomlas language files except as faster PHP arrays instead of INI files. Because it's a PHP array we can support a lot more functionality that INI can't provide like multiple keys, key overriding, etc.. It loads the language plugin, loads the strings into the language array, when the key is requested it displays the matching value.

2) What are numbers at the end of the CAPITALS? Or are they just differentiators?

It's just a hash we generate with our language parsing. You do not need to supply a hash for your custom strings.

3) Just to confirm... if all two questions above are yes, I change the stuff after => ?

Yes, you change the value of the key value pair.

4)How can I find the "machine language" of the stuff I want to change? (in this case all of the CB emails). Any shortcuts than going through all the language files?

No idea what you mean by machine language. All of CBs language strings are in the language files. You'll need to search the files for strings you want to change. This is best done in an IDE (phpstorm, netbeans, etc..) to avoid making PHP syntax errors (unescaped quote, etc..).


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.

Moderators: beatnantkrileon
Powered by Kunena Forum