Storing localization strings

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
Technical
Forum Commoner
Posts: 81
Joined: Thu Dec 02, 2010 5:30 am

Storing localization strings

Post by Technical »

What is the most efficient way to store localization strings? Gettext, JSON or XML? Any other? The most important is user-friendly, so anyone can edit.
User avatar
Jonah Bron
DevNet Master
Posts: 2764
Joined: Thu Mar 15, 2007 6:28 pm
Location: Redding, California

Re: Storing localization strings

Post by Jonah Bron »

I think XML would be the most user-friendly.
User avatar
Technical
Forum Commoner
Posts: 81
Joined: Thu Dec 02, 2010 5:30 am

Re: Storing localization strings

Post by Technical »

Jonah Bron wrote:I think XML would be the most user-friendly.
In XML you need to replace special symbols with entities, put CDATA sections and etc. I just realized that XML is not an option.
So, I think JSON is fine, so I'm staying with it.
Thanks for the reply though.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Storing localization strings

Post by Christopher »

(#10850)
Post Reply