Code re-use for consistency

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • malmazan
    Senior Member
    • Jan 2006
    • 974
    • 4.2.X

    Code re-use for consistency

    1. I was wondering if it is possible to re-use phrases to speed up translations or any other changes in the language files, as well as to improve consistency.

    For instance :
    <phrase name="subscribed_threads"><![CDATA[Subscribed Threads]]></phrase>
    defines the text for "subscribed threads"

    so for

    <phrase name="can_automatically_subscribe"><![CDATA[When you post a new thread, or reply to a topic, you can choose to automatically add that thread to your list of <a href="{1}">subscribed threads</a>, with the option to receive email notification of new replies to that thread.]]></phrase>
    why not re-use the text we had before. We save time and we ensure the same lenguage is used throughout.

    Like :
    <phrase name="can_automatically_subscribe"><![CDATA[When you post a new thread, or reply to a topic, you can choose to automatically add that thread to your list of <a href="{1}"><phrase name="subscribed_threads"></a>, with the option to receive email notification of new replies to that thread.]]></phrase>
    or whatever syntax was correct, maybe this possibility exists already?

    Depending on the language and context this may not be usable always, but it would certainly help. And it could ALWAYS be use to refer the user to a specific control consistently.

    I've translated other software that had this possibility.

    2. Also to speed translations and aid consistency, maybe word snippets could be defined. Like "post" or "thread", so one can easily change terminology. You would define a plural version (e.g. "posts") and maybe other versions too depending on the language. Again this may already be possible ?
    Vote for these issues:
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...