Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
219 views
in Q2A Core by

I try to add qa-lang-main.php file to Transifex localization platform, but platform give error because there is 
strings without quotation marks (PHP_ARRAY).
Strings:

'date_day_min_digits' => 1, // 1 or 2
'date_year_digits' => 4, // 2 or 4

Why strings are in lang file? Is there any better place, e.g. qa-config.php file? 

Q2A version: 1.7

1 Answer

+1 vote
by
selected by
 
Best answer
Good question. I think the values are in there because they are "culture-sensitive", i.e. different countries may use different formats. Same as the date_format_other_years value and the upcoming number formatting/shortening values.

The simplest fix is to put those values in strings, which is a good idea anyway for consistency.
...