Login  Register

Re: arabic language

Posted by akhayyat on Apr 09, 2013; 8:56pm
URL: https://support.nabble.com/arabic-language-tp7581259p7583947.html

Thank you for your answers.

>> 1. What are all the possible values of the "app" variable?
> That's right: Gallery, Category and Subcategory.

So there are no "Mailing list" or "Forum" apps? Only those three above?

>  You can create another macro to handle "the app".

Is there a simple macro for testing string equality? or is it just "regex_matches"?
Better yet, is there a switch-case-like macro?

Here is what I'm thinking:

<macro name="the" dot_marameter="app">
        <n.if.regex_matches text="[n.app/]" pattern="منتدى"/>    // forum
                <then>المنتدى</then>
                <else.if.regex_matches text="[n.app/]" pattern="فئة"/>    // category
                        <then>الفئة</then>
                        <else.if.regex_matches text="[n.app/]" pattern="فئة فرعية"/>    // subcategory
                                <then>الفئة الفرعية</then>
                                <else.if.regex_matches text="[n.app/]" pattern="معرض صور"/>    // gallery
                                        <then>معرض الصور</then>

1. How should I close the <else.if.regex_matches> tags?
    </else.if.regex_matches>
    OR
    </else.if.regex_matches text="[n.app/]" pattern="فئة"/>

2. Is there a better way to do this switch-case-type logic?