PHP gettext and vagrant running ubuntu

后端 未结 1 666
时光取名叫无心
时光取名叫无心 2020-12-21 18:26

I\'m having a problem getting gettext to translate one of my translation files on my Vagrant setup running Ubuntu. My locale files are in a directory like so...



        
相关标签:
1条回答
  • 2020-12-21 19:10

    So it turns out that following the suggestion here worked for me https://stackoverflow.com/a/20602983/682754

    sudo service php5-fpm restart
    

    I am guessing it may have stemmed from one of the following:

    • I had been switching the locale values de_DE.UTF-8 to not use the hyphen and tried lowercase, I noticed on Ubuntu it is de_DE.utf8
    • I had also changed the names of my .po and .mo files
    0 讨论(0)
提交回复
热议问题