Translate a block title

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • takamol
    New Member
    • Jan 2016
    • 7
    • 5.1.x

    Translate a block title

    Hello,

    I need a way to translate a block title in sidebar from English to Arabic when I switch the language.

    I use vBulletin 4.2.3.
  • Trevor Hannant
    vBulletin Support
    • Aug 2002
    • 24326
    • 5.7.X

    #2
    You can't unless you create a phrase with English and Arabic translations then edit the relevant Bloc template(s) to use the phrase instead of the name entered in the Block Manager.
    Vote for:

    - Admin Settable Paid Subscription Reminder Timeframe (vB6)
    - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

    Comment

    • takamol
      New Member
      • Jan 2016
      • 7
      • 5.1.x

      #3
      Originally posted by Trevor Hannant
      You can't unless you create a phrase with English and Arabic translations then edit the relevant Bloc template(s) to use the phrase instead of the name entered in the Block Manager.
      Perfect, I've just added the phrase, but how can I edit the relevant Block template(s) to use the phrase instead of the name entered in the Block Manager?

      Comment

      • Trevor Hannant
        vBulletin Support
        • Aug 2002
        • 24326
        • 5.7.X

        #4
        Enable the following setting:

        AdminCP > Settings > Options > General Settings > Add Template Name in HTML Comments

        ...then refresh the page. Find the text for the Block name and you should see the template name just before that line of HTML. Go to the Style Manager, edit that template and replace this line:

        Code:
        <span class="blocktitle">{vb:raw blockinfo.title}</span>
        with this:

        Code:
        <span class="blocktitle">{vb:rawphrase YOUR-PHRASE-NAME}</span>
        Vote for:

        - Admin Settable Paid Subscription Reminder Timeframe (vB6)
        - Add Admin ability to auto-subscribe users to specific channel(s) (vB6)

        Comment

        Related Topics

        Collapse

        Working...