Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

default_language.php

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
11 years 6 days ago #235835 by KatoKalin
default_language.php was created by KatoKalin
One question regarding default_language.php. When I add custom strings what will happen do the customized version on upgrade? Will it get replaced by the upgraded default_language.php?
If yes, how to implement customized strings so they won´t get removed on upgrade?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 6 days ago #235850 by krileon
Replied by krileon on topic default_language.php

When I add custom strings what will happen do the customized version on upgrade?

You will lose all your changes.

Will it get replaced by the upgraded default_language.php?

Yes.

If yes, how to implement customized strings so they won´t get removed on upgrade?

Install and edit the English language plugin found below and leave the default_language as is.

forge.joomlapolis.com/projects/lan-cb-en/files


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.

  • KatoKalin
  • KatoKalin
  • OFFLINE
  • Posts: 265
  • Thanks: 11
  • Karma: -5
  • Add-ons
11 years 6 days ago #235856 by KatoKalin
Replied by KatoKalin on topic default_language.php

krileon wrote: Install and edit the English language plugin found below and leave the default_language as is.


Ok, I will. Just to make clear: This will not be overwritten by upgrades. But I guess it will be overwritten if I reinstall this language plugin oder install a new version of it?

If yes, wouldn´t it be a good idea to make language custumization independet from upgradings? This could be implemented by using a seperate language file (per language) that is only for customizations and therfor never gets overwritten. For example this could be a file custom.php in every language directory. Custom.php is the file to be edited for custom language strings and CB simply includes this file.

Well.... just an idea.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48473
  • Thanks: 8281
  • Karma: 1443
11 years 6 days ago #235869 by krileon
Replied by krileon on topic default_language.php

This will not be overwritten by upgrades.

Correct.

But I guess it will be overwritten if I reinstall this language plugin oder install a new version of it?

Yes.

If yes, wouldn´t it be a good idea to make language custumization independet from upgradings? This could be implemented by using a seperate language file (per language) that is only for customizations and therfor never gets overwritten. For example this could be a file custom.php in every language directory. Custom.php is the file to be edited for custom language strings and CB simply includes this file.

Only the core default_language file is replaced by installing CB. This is done so CB doesn't error when it's missing its defines. Won't be an issue once we swap all usages to CBTxt based and probably do away with installing a language all together by default so translations will never be overridden.


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