Troubleshooting for the current version

#454 – AdsManager in several languages

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Monday, 12 November 2018 12:37 CET
nocturna
Joomla! version :
PHP version :
AdsManager version :

Hello,


I'm considering adding a new language to my site to improve SEO.

I already know that AdsManager is ready in several languages through the .ini files of each language including the one I want to add.

But I have a question, how can I do it to have 2 categories schemes in 2 different languages? I have approximately 2000 categories on my site between main categories and subcategories.

In addition, there are about 600 fields in total to use in different categories.

Would I have to recreate all this step by step in the new language?

Thank you,

Best regards,

J Andreu
Custom Fields
Joomla Version
3.8.12
PHP Version
7.1.23
Product
AdsManager
Product Version
Gold 3.1.11
Tuesday, 13 November 2018 08:29 CET
loic
Hello,

The categories and fields name can be set as translation strings.

For example, for a category named 'Categorie One', if you change the title as 'CATEGORIE_ONE' then that strings can be translated.

You simply need to add the translation in a .ini file or create a new language override.

The same can be applied for the fields.

With 2000 categories and 600 fields, I'm aware that this is a lot of works.

If you are confortable with the code, you can try to do a process that will change the title of the categories and fields for you but it will still require the modification of the .ini files to work.

Best regards.
 
Wednesday, 14 November 2018 10:17 CET
nocturna
Hello Loic, thanks for your answer, this is very interesting

So, a couple of other doubts:

For the fields. For example, Radio Button or Check Box or Drop Down type that contains about 20 values, what would be the procedure to translate these values?

For the categories. If the title of a category becomes CATEGORY_ONE, does this mean that site users would see all category names with a hyphen under '_'? Maybe I have not understood this well.

Thank you,

Best regards,
J Andreu B
Friday, 16 November 2018 08:11 CET
loic
Hello again :)

All the string of AdsManager (and 99% Of Joomla) are in fact translation strings.

If you change the category for CATEGORY_ONE and do not specify any translation, then the users will see 'CATEGORY_ONE'.

But if you create a translation (in the language override system or directly in the .ini files) then the users will see the translation.

For the option of a select or checkboxes, the process is exactly the same.

Best regards.
 
Friday, 16 November 2018 10:38 CET
nocturna
Ok, ok, I understand.

Thank you very much Loic.

You can close this ticket whenever you want, my doubt is resolved.

Best regards,
J Andreu B
Tuesday, 20 November 2018 13:00 CET
loic
Hello,

Closed :)

Best regards.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.