Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 22Feb 22 Hi everyone,I’ve been trying to change the date format from mm dd yy to dd mm yy, but I haven’t had any luck. Normally, I’d expect this to be handled by PHP settings, but it seems that’s not the case here. I also checked the translations, but that didn’t work either.Has anyone managed to change the date format successfully? Maybe I’m missing something obvious. Any help or pointers would be much appreciated!Thanks in advance! 😊
February 22Feb 22 Community Expert You have to change several translation keys, here is how I did it:You must put "{0#}" at the very beginning
February 22Feb 22 Community Expert Have you tried editing your active language to set the locale? by default it would be set to United States/English
February 22Feb 22 Author Have you tried editing your active language to set the locale? by default it would be set to United States/EnglishI dont see other local lang maybe its coming from this, before i was on v4 i didnt have this problem, after upgrade to v5 :
February 22Feb 22 Community Expert I dont see other local lang maybe its coming from this, before i was on v4 i didnt have this problem, after upgrade to v5 :These would be installed on your server. Ask your hosting provider if you are unsure how to add new locales.
February 22Feb 22 Community Expert I dont see other local lang maybe its coming from this, before i was on v4 i didnt have this problem, after upgrade to v5 :If you have a VPS you can easily install the FR-fr language with commands, by connecting via SSH.If you have shared hosting, normally this should already be installed depending on your host
February 22Feb 22 Author i am on dedicated / vps, any advise how to achieve this ? How to check before ? I didnt have this issue in v4, i'd french as local !
February 22Feb 22 Community Expert If you are on Linux, you can check the languages installed on your server by typing this command: locale -a
February 22Feb 22 Author If you are on Linux, you can check the languages installed on your server by typing this command:locale -aMy bad :/locale -aC.UTF-8POSIXen_USen_US.iso88591en_US.utf8
February 22Feb 22 Community Expert You can try to install the FR language with this command: sudo apt install language-pack-fr -yInfo : If you get a result like "command not found" or the command does not work, it is because it is not compatible with your system and it is probably another command.Then make sure to activate the French language with:sudo locale-gen fr_FR.UTF-8sudo update-locale LANG=fr_FR.UTF-8Once done, verify the installation with locale -aDon't hesitate to also look at your panel level, there may be parameters for that.
February 22Feb 22 Author Thanks a lot, i just indtalled fr :I tried to edit lang but still see only english us and no way to add Fr :/Very strange Edited February 22Feb 22 by Janyour
February 22Feb 22 Community Expert Try using the same casing the locale command returns. You have upper case UTF where as the OS has lower case
February 22Feb 22 Community Expert Can you try this?source /etc/default/localeThis command allows you to reload the parameters.With a successful installation, you should see your installed languages in the drop-down menu
February 23Feb 23 Community Expert Still nothing shwon .. pffThis is strange, contact your host's support, they can probably resolve this