superskyman100 Posted May 15, 2019 Share Posted May 15, 2019 Hello guys, I'm on Prestashop 1.7, i've create the Australian language due to some specificities of this market (i'd likie to add somes specific size attributes for that region of the world), but i had to create it 'from scratch' cause there is no language pack, and i need the /au at the end of my URLs to make the stuff looking serious. Some guys suggested me to import a language pack, but if i do so, the URLs will be, for example, /gb or watever, which dosn't really look pro, and i can't change it.... The problem is that languages created 'from scratch' aren't working well with the translation manager. In fact, i cannot modify anything (modules, classic theme, custom theme) with this. Any idea ? here i've created the language from scratch here the 'Au' language here the homepage with /au extension and nice cool little Australian flag here the translations that cannot work >>>> nothing appears on screen for theme translations / modules translations etc etc... or worst, 'internal server error'....... Any fix ???? Thanks a lot Link to comment Share on other sites More sharing options...
musicmaster Posted May 18, 2019 Share Posted May 18, 2019 Under translations you have an option to copy one language to another. Try using that to get your data filled. Link to comment Share on other sites More sharing options...
Debbie Shook Posted May 18, 2019 Share Posted May 18, 2019 You can also look at this previously posted solution as well Link to comment Share on other sites More sharing options...
superskyman100 Posted May 20, 2019 Author Share Posted May 20, 2019 Hello musicmaster, thx for your help ! :) i tried your suggestion but i have bunch of errors when i do so : btw, even if there is no error, i'll be able to copy ONLY the themes (classical, or mine, named 'Warehouse') translations, nothing else. Anywaym it's not working... Link to comment Share on other sites More sharing options...
superskyman100 Posted May 20, 2019 Author Share Posted May 20, 2019 @Debbie thank you very much, i've already read this thread, in fact well related to my problem, but it does not help much cause i don't know what to do with the au.gzip file.... i even don't know how to create a language pack.... maybe this is what i should do (create a new australian language pack)... any procedure ? Thanks Aurelien Link to comment Share on other sites More sharing options...
musicmaster Posted May 20, 2019 Share Posted May 20, 2019 (edited) 50 minutes ago, superskyman100 said: Hello musicmaster, thx for your help ! i tried your suggestion but i have bunch of errors when i do so : btw, even if there is no error, i'll be able to copy ONLY the themes (classical, or mine, named 'Warehouse') translations, nothing else. Anywaym it's not working... I don't like the text "it's not working". It sounds passive. Did you investigate why the copying doesn't work? Is the source file not there? Or is there a rights problem with the target location. The latter - what I consider the most likely option - would point to a misconfigured server that has nothing to do with Prestashop. Edited May 20, 2019 by musicmaster (see edit history) 1 Link to comment Share on other sites More sharing options...
superskyman100 Posted May 20, 2019 Author Share Posted May 20, 2019 Hello Musicmaster, Thanks again, and YES, i don't like passiveness too... For my defense i've been out of my PS issues for few days (for many #%$#%% reasons out of scope ;)) ... Anyway, i should have gave you more clues... my apologies for that. So let's go back to business if u wish : For clarity, here, again, my errors when i try to copy the classic theme. I have EXACTLY same errors if i try to copy my Warehouse theme. So i searched.... and... >>> I don't have any "en" in the folder public/translations.... just one 'au' folder.. >>>> >>> i have the folders EN and AU in public/mails, but EN folder has 74 files while AU folder has 65 files only... >>> in themes / classic / lang, there is NO FOLDER at all...... ................. This is what i can say for now... what i should do now, i have to idea... when it's getting to files structure, i'm a total newbie, so i would prefer to 'try' things under good direction... Thanks Aurelien Link to comment Share on other sites More sharing options...
musicmaster Posted May 20, 2019 Share Posted May 20, 2019 - Is there anything that did get copied? English is of course the default language that already is in the pages. That could explain why some files are missing. You could try to edit the English language and see whether saving it will generate more files. Alternatively you could try installing the en-us or en-gb languages and work from there. Link to comment Share on other sites More sharing options...
superskyman100 Posted May 20, 2019 Author Share Posted May 20, 2019 1/ clearly, the 'copy language' function doesn't 'understand/match' my file structure. On my side, that's the main problem. If i can copy the Themes translations, 99% of the work will be done.............. Moreover, i cannot localize WHERE are the translations files : - theme/Warhouse/translations , everything is empty (EN-us, FR-fr.... folders are empty) - theme/Warhouse/lang is empty too... - theme/classic/translations, it's empty too.......................... - public/translations..... empty ................................. 2/ 'A part of the data has been copied but some of the language files could not be found'.... this is what it is said. So, some files have been copied, but i cannot know what files exactly (except if i try to backtest on a 'clean' prestashop, but that will take hours and headaches for no practical results...).... from before, i assume the files from 'public/mails' have been copied only, cause all the other folders are EMPTY.................... Otherwise i copied nothing throughout FTP or stuff like that i just followed the manip u've suggested, and the translation stuff is still out of order. 3/ i already tried to use the EN-US or EN-GB, and tweak it, but i cannot modify the ISO code, therefore i have an "/us" or "/gb" at the end of my URLs... not exactly coherent stuff to sell stuff with an Australian flag.... If we can solve the 1/, it should be ok, the problem is that i have no idea how................. Link to comment Share on other sites More sharing options...
musicmaster Posted May 20, 2019 Share Posted May 20, 2019 I tried to copy your situation in 1.7.5.1 but I can't. When I try create en-au next to en-us I get the error: This ISO code is already linked to another language It doesn't like to have two "en" languages. I am puzzled that you didn't ran into that problem. Link to comment Share on other sites More sharing options...
superskyman100 Posted May 20, 2019 Author Share Posted May 20, 2019 I mentioned that problem quickly : i tried to create one australian pack out of an english (gb) one, then tweak it to make it looks like Australian. But I hasn't been able to modify the ISO code (mainly to have "...../au " at the end of my URLs), so i abandoned the idea.. Prestashop is a real pain in the *** when it comes to create on language from scratch : no procedure, no support (except yours)... If i was you, i would try to create one language from scratch and look, you'll see it 'doesn't work' correctly... Sounds passive, but i've already tried a lot to solve this (in my opinion) critical stuff. Link to comment Share on other sites More sharing options...
superskyman100 Posted May 20, 2019 Author Share Posted May 20, 2019 Btw, if u have an idea about WHERE are the translation files : - theme/Warhouse/translations , everything is empty (EN-us, FR-fr.... folders are empty) - theme/Warhouse/lang is empty too... - theme/classic/translations, it's empty too.......................... - public/translations..... empty ................................. I'm unable to find them............ Link to comment Share on other sites More sharing options...
musicmaster Posted May 22, 2019 Share Posted May 22, 2019 Hi, I did some research and I have indeed to conclude that languages are still a mess. Prestashop is in transition from a system where you have files like en.php and fr.php towards .xlf files. It looks that the new system is still full of bugs. .xlf files are a kind of xml. In the 1.7 version of my theme (Panda) I find those files indeed under the translations subdir of the theme. For the main software the translations seem to be under /app/resources/translations From what I have seen I would advise you to give up on an "au" directory at the moment. It is just too messy. Maybe when Prestashop gets its act together in 1.7.6 will it be worth the effort. The forum is not well monitored by Prestashop staff. So if you want your problem be noticed you should report it on Github (https://github.com/PrestaShop/PrestaShop/issues) or discuss it on Gitter (https://gitter.im/PrestaShop/General) Link to comment Share on other sites More sharing options...
superskyman100 Posted May 23, 2019 Author Share Posted May 23, 2019 Hello Musicmaster, Thanks a lot for your confirmation, indeed, i also did some work around, in other forums, and nothing seems to be clear, except maybe if i want to create a language pack (and i don't have time to do that). Some sources out there : http://build.prestashop.com/news/translation-resources/ https://crowdin.com/project/prestashop-official I also had lots of issues when it came to add/delete languages (i made that mistake), cause the language you delete isn't deleted from databases, creating lots of bugs, specially if you wanna change friendly URLs names (I finally had to 'clean' via SQL all databases from 'old' languages i've imported previously)... I guess this is part of the game, but that's a pity i cannot fully use Presta's potentialities, cause in fact, multi-languages and currencies IS a real strong point of that plateform. Anyway... Thanks again for your help Have some nice notes 1 Link to comment Share on other sites More sharing options...
Recycled Software Posted September 21, 2019 Share Posted September 21, 2019 On 5/22/2019 at 4:57 PM, musicmaster said: Hi, I did some research and I have indeed to conclude that languages are still a mess. Prestashop is in transition from a system where you have files like en.php and fr.php towards .xlf files. It looks that the new system is still full of bugs. .xlf files are a kind of xml. In the 1.7 version of my theme (Panda) I find those files indeed under the translations subdir of the theme. For the main software the translations seem to be under /app/resources/translations From what I have seen I would advise you to give up on an "au" directory at the moment. It is just too messy. Maybe when Prestashop gets its act together in 1.7.6 will it be worth the effort. The forum is not well monitored by Prestashop staff. So if you want your problem be noticed you should report it on Github (https://github.com/PrestaShop/PrestaShop/issues) or discuss it on Gitter (https://gitter.im/PrestaShop/General) 1.7.6.1 its the same mess. On one of my ps sites I'm trying to edit the default language of a child of the classic theme but in order to do so I need to copy the language from the classic theme to the child theme but no language files reside within the classic theme - i get this stupid error message: Quote Impossible to copy "/var/www/ps/themes/classic/lang/en.php" to "/var/www/ps/themes/my-child-theme/lang/en.php". A part of the data has been copied but some of the language files could not be found. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now