toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 23 ott 2023 14:17 First of all Hello to everyone, I'm very pleased to start using litecart.Sometime ago subscriber only to help translate in french but never really used it.This morning I've locally installed litecart to have a look on it and then added french language.Seen : maintenance_mode:description and error_another_language_uses_url_type_nonenon translated.I cannot contribute as usually at the translation place without telling here what is happening while it is supposed to be 100% translated at the time I'm writing.Cordially
tim Founder Da Sweden Membro dal mag 2013 tim 23 ott 2023 16:35 Scan your files to collect translation keys before importing.
toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 24 ott 2023 01:58 Thanks, thought I did but you gave me a doubt.I made a new fresh install then scanned like you said before importing.I got the same result with those two missing translations. (screenshots joined)it's ok to translate locally but not to contribute.
tim Founder Da Sweden Membro dal mag 2013 tim 24 ott 2023 17:18 It's possible the scanner misses these two due to the escape character in the injected translation. I will add that to my to do list.https://github.com/litecart/litecart/blob/2.5.4/public_html/includes/templates/default.catalog/pages/maintenance_mode.inc.php#L27https://github.com/litecart/litecart/blob/2.5.4/public_html/admin/languages.app/edit_language.inc.php#L36If anyone wants to play with this. Here is the code:https://github.com/litecart/litecart/blob/2.5.4/public_html/admin/translations.app/scan.inc.php#L29-L36
toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 24 ott 2023 18:58 I understand exactly nothing on coding php, only seen they are a lot of question marks ...but for those who know about it there's maybe a beginning of answer belowhttps://stackoverflow.com/questions/10830366/how-to-make-scanner-properly-read-escape-charactersthat's all I could do for help
toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 2 nov 2023 09:18 Cannot find this one "Powered by LiteCart®" to translate, this one should be the first in your "to do list" translations.As english language seems to spread all over the world even on the Asian side, sometime thing like this could look at normal but it is not :)
jackmaessen LiteCart Fan Da Netherlands Membro dal dic 2022 jackmaessen 2 nov 2023 09:55 You can find these lines in: includes/templates/default.catalog/views/box_site_footer.inc.php<section id="copyright"> <div class="fourteen-forty container notice"> <!-- LiteCart is provided free under license CC BY-ND 4.0 - https://creativecommons.org/licenses/by-nd/4.0/. Removing the link back to litecart.net without permission is a violation - https://www.litecart.net/addons/172/removal-of-attribution-link --> Copyright © <?php echo date('Y'); ?> <?php echo settings::get('store_name'); ?>. All rights reserved · Powered by <a href="https://www.litecart.net" target="_blank" title="High performing e-commerce platform">LiteCart®</a> </div></section>You will need permission from @tim to modify this line!
toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 2 nov 2023 10:10 Thank you, this is one way to do.I meant if it could be translated in used languages when click on flags so each country can have "Powered by" in their own language.Doing the way you said is one time setup but never change when clicking on flags.I'm not asking to remove or modify but only to get proper translations.
jackmaessen LiteCart Fan Da Netherlands Membro dal dic 2022 jackmaessen 2 nov 2023 10:24 <section id="copyright"> <div class="fourteen-forty container notice"> <!-- LiteCart is provided free under license CC BY-ND 4.0 - https://creativecommons.org/licenses/by-nd/4.0/. Removing the link back to litecart.net without permission is a violation - https://www.litecart.net/addons/172/removal-of-attribution-link --> Copyright © <?php echo date('Y'); ?> <?php echo settings::get('store_name'); ?>. All rights reserved · <?php echo language::translate('title_powered_by', 'Powered by'); ?> <a href="https://www.litecart.net" target="_blank" title="High performing e-commerce platform">LiteCart®</a> </div> </section>Then search in translations for "title_powered_by"
toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 2 nov 2023 11:04 Perhaps I didn't make myself clearly understand or even me didn't understand ... but also this is maybe difficult for team to get this footer automatically translated.
jackmaessen LiteCart Fan Da Netherlands Membro dal dic 2022 jackmaessen 2 nov 2023 12:10 I don't understand what you are trying to achieve. The code i mentioned above is translatable in translations. That means: if a user clicks on another language, the translation will do the job for you. But you always have to do the translation yourself in the translations, for each language you have activatedOr maybe you expect the following behavior: a user clicks on a language and de footer appears automatically in this language, without translate it manually in translations?
toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 2 nov 2023 12:22 "Or maybe you expect the following behavior: a user clicks on a language and de footer appears automatically in this language, without translate it manually in translations?"Yes exactly, automatic translation as shown below is not working.
jackmaessen LiteCart Fan Da Netherlands Membro dal dic 2022 jackmaessen 2 nov 2023 12:28 I understand. But that's quite a lot of work to do that automatically for every language. It is much easier to do it manually for the languages you have activated...
toulibre LiteCart Fan Da France Membro dal gen 2021 toulibre 2 nov 2023 12:44 Thank you for this answer, so if I have two languages on my website eg: french and thai, will it work if I do the trick when I will switch languages ?
jackmaessen LiteCart Fan Da Netherlands Membro dal dic 2022 jackmaessen 2 nov 2023 12:47 yes it should work. Find "title_powered_by" in translations and translate it for french and thai