German Language translation....where is the [type] string translated

6 years 4 months ago #300553 by erichburkhard
I am using CB together with CB Gallery and the german language plugin...I am also using the 'override' concept in case I encounter some wrongly translated strings....but now I have some difficulties because I noticed that the substring '[type]' which is part of many translation strings is wrongly translated.....now my question...where is it possible to correct the substituation of the [type] subststring?

As follows what happens now:
ENGLISH: if [type] = photo --> replace type by 'photo' --> this is currently correct
GERMAN: if [type] = photo --> replace type by 'Foto' --> and not 'photo' or 'Photo'

regards

Please Log in to join the conversation.

6 years 4 months ago #300560 by krileon
The types should just be translatable individually. So you'd have a language translation for "Photo" and "Photos". You should be able to find both using the language finder when using language overrides. Example as follows.

Key: PHOTO_c03d53
Text: Photo

Key: PHOTOS_5daaf2
Text: Photos

It's done this way with a substitution because there would basically be IF conditions all over the place with 100 different language strings, which can be condensed down to a small few using substitutions. There are type based language keys, but they won't work at this time due to the language key order that I'll be fixing in next release. Example as follows.

Generic Key: ARE_YOU_SURE_UNPUBLISH_TYPE
Specific Key: ARE_YOU_SURE_UNPUBLISH_PHOTO

Once I fix the language key order issue you'd use the below to specifically translate the entire string using the specific key for example on a per type basis.


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.
The following user(s) said Thank You: erichburkhard

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.183 seconds

Facebook Twitter LinkedIn