How to translate this string

7 years 1 month ago #291826 by erichburkhard
How to translate this string was created by erichburkhard
I have the newest CB and CBSubs installed. Mi bilingual site (German and English) works fine....the only exception is the following string:



Has anybody an idea how to translate this (to German language) or where to put the translation string? (PS: In order to get a hint where the original (default)english string is located, I made a complete full text search through the whole Joomla Installation....but there is no string like this)

regards
Attachments:

Please Log in to join the conversation.

7 years 1 month ago #291849 by krileon
Replied by krileon on topic How to translate this string
That's the following language string.

'CBSUBS_ACCESS_LOCATION_NOT_ALLOWED_WITHOUT_SUBSCRIPTION'	=>	'Access to this location not allowed without [SUBSCRIPTION_TEXT]',

My guess is your CBSubs language plugin is out of date or your CB language plugin does not contain CBSubs translations. You can use the new overrides below to manually translate the above though.

www.joomlapolis.com/blog/kyle/18701-language-overrides-have-arrived


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 to join the conversation.

6 years 11 months ago #293008 by erichburkhard
Replied by erichburkhard on topic How to translate this string
Hi Kyle - So I entered the following key / value in to this override tab:

Key: CBSUBS_ACCESS_LOCATION_NOT_ALLOWED_WITHOUT_SUBSCRIPTION
Value: Der Zugriff auf diesen Bereich ist nicht erlaubt ohne [SUBSCRIPTION_TEXT]



So a part of it has been correctly displayed in german...but the variable at the end -> [SUBSCRIPTION_TEXT] was not translated...how to fix this? I tried to enter the following key / value

key: SUBSCRIPTION_TEXT
Value: Abonnement

....but this didn't work...
Attachments:

Please Log in to join the conversation.

6 years 11 months ago #293034 by krileon
Replied by krileon on topic How to translate this string
[SUBSCRIPTION_TEXT] is a substitution of the "Singular name for subscription/membership" parameter within CBSubs > Settings > Display > Plans. You can change that string directly or you can use the language finder to find its language key. See below on how to use the language finder.

www.joomlapolis.com/blog/kyle/18712-language-key-and-text-finder


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 to join the conversation.

6 years 9 months ago - 6 years 9 months ago #295090 by AlexRag
Replied by AlexRag on topic How to translate this string
Hi Kyle,

I followed the tips in this post to change the message appearing in the image below that was formed partly by [SUBSCRIPTION_TEXT], but I can;t seem to figure out where the last sentence is being generated from.

The message appears when navigated to a menu item only accessible if a member is logged in.

I have not been able to locate it using the language finder in the CBSubs language plugin

Any ideas?

Attachments:

Please Log in to join the conversation.

6 years 9 months ago #295095 by krileon
Replied by krileon on topic How to translate this string
You can use the language string as the language key. In that case it's a parameter usage so it has no specific key beyond whatever is generated by our language parser. The below is with the generated key.

'IF_YOU_ALREADY_HAVE_AN_ACCOUNT_PLEASE_LOGIN_FIRST__29098f'	=>	'If you already have an account, please login first. Otherwise you need to register using this form.',

The below is with using the string as the key.

'If you already have an account, please login first. Otherwise you need to register using this form.' => 'If you already have an account, please login first. Otherwise you need to register using this form.',

So you can try either of the below in language overrides.

Key:
IF_YOU_ALREADY_HAVE_AN_ACCOUNT_PLEASE_LOGIN_FIRST__29098f
Text:
If you already have an account, please login first. Otherwise you need to register using this form.

Key:
If you already have an account, please login first. Otherwise you need to register using this form.
Text:
If you already have an account, please login first. Otherwise you need to register using this form.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.360 seconds

Facebook Twitter LinkedIn