Jump to content

Inconvenience while using same translation context in different files


theoretic
 Share

Recommended Posts

Hi friends! And thanks for ProcessWire!

There's an inconvenience in ProcessWire file translation process which, I think, deserves a topic here. It's a common case to have same translatable phrases in different translatable files. Using a translation context (in fact, a separate file holding all that phrases) is also a common case, at least for me. Generally i call that context I18N_GLOBAL. So my typical translation may look like this:

<?=__( 'Accept', I18N_GLOBAL )?>

The problem is that ProcessWire translation interface is context-agnostic. If You have to translate multiple files containing the same 'Accept'-related piece of code, it will be always treated as not translated yet, even if I18N_GLOBAL file is already translated. Quite annoying, especially if You have lots of phrases to translate.

So dear Santa, could You please make translation interface context-aware and to mark all the phrases (in all the files) which already have translation in my I18N_GLOBAL file as translated? Or maybe I missed something, and there's a possibility to tweak some settings and achieve this?

Thanks in advance for any possible advice or idea )

  • Like 1
Link to comment
Share on other sites

Ho yes it is in ProFields sub-forum, he said:

Quote

I see, I'll play with it here and should be able to make the translation tool skip over translations for those in other text domains, if it's not already doing that.

 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...