PHPfox-Official / phpfox-v4-issues

phpFox Public Bug Tracker
https://phpfox.com
30 stars 21 forks source link

Texts only used on AdminCP should be clearly flagged #2901

Open daniol opened 4 years ago

daniol commented 4 years ago

What's happened?

I am translating phpfox to a language which has not yet translated; however I would like to translate only the frontend and let the strings that are only used on the AdminCP untranslated in english for better clarity. Therefore, I would like to filter out the strings of the AdminCP to concentrate only in the frontend.

That's not possible, because the strings that are saved on the table "phpfox_languagephrase" are not sorted in any way: all of them have the module "phphfox" and only few variable names begin with "admincp".

What's expected?

Strings that are only used on the admin panel are clearly flagged and can be filtered.

harrison05 commented 4 years ago

Hi @daniol

We can add a setting to disable translate phrases in AdminCP and force it using default language. All apps don't need to update variable.

How do you think about this solution? Can it resolve your issue?

Regards.

daniol commented 4 years ago

Hi @harrison05 .

The suggestion doesn't cover the described issue. We need a filter to exclude the AdminCP texts from the translation work, for example a new field on the database table "phpfox_language_phrase", a different module name or a consistent variable naming convention.

For others experiencing this problem, I build a rudimentary filter that excludes some of the AdminCP texts:

Thanks.