• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Translating phrases

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Translating phrases

    • Issue Tools
      • View Changes
    1. issueid=1700 June 17, 2010 11:09 AM
      Farshid.T Farshid.T is offline
      Junior Member
      Translating phrases
      the word page cannot be translated

      Hi,
      I was translating the phrases to Persian and I noticed that I can't translate the word "Page".
      the word is located at "vault_page".

      The problem is,
      the original English phrase is "Page" (with capital p) but in some pages the word has been changed to "page" (with lower-case p). The script changes the P to p in some cases.
      But in many languages there is no upper/lower case for the words! Anyway, I managed to fix the issue by adding a [space] before the translation of this word (= " page_in_persian" ) so that the space would be changed to upper-case!
    Issue Details
    Issue Number 1700
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Language / Phrasing
    Status Fixed
    Priority 2 - Fatal / Database Errors
    Affected Version 3.0.0
    Fixed Version 3.0.1
    Milestone VaultWiki 3.0.5
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. June 17, 2010 1:07 PM
      pegasus pegasus is offline
      VaultWiki Team
      My impression was that if the charset was UTF-8 and you enabled VaultWiki's UTF-8 setting, that the multi-byte functions would know what characters could and couldn't be upper/lower case. Did you do this?

      Maybe because it's on a word-level (not character-level) that the case doesn't translate?

      If it's the second issue, where 'Page' means something different from 'page'... This isn't really a bug, but maybe I can add another language setting that will let you specify whether words in the language will retain their meaning if the case changes.

      Please clarify so I have a better idea how to address this. Thanks.
      Reply Reply  
    2. June 18, 2010 12:00 AM
      Farshid.T Farshid.T is offline
      Junior Member
      UTF-8 is enabled. Both Page and page should be translated to the same word. It isn't the second issue.

      If I translate the variable "vault_page" to Persian without space before the word, I will see "�age" all over the wiki. (Persian would be "فحه�" instead of "صفحه" )
      Reply Reply  
    3. June 20, 2010 1:12 PM
      pegasus pegasus is offline
      VaultWiki Team
      Fixed for the next build. In vault/wiki/string.php, find:
      Code:
      			return mb_strtoupper(mb_substr($input, 0, 1, "UTF-8")) . mb_substr($input, 1, mb_strlen($input, "UTF-8"), "UTF-8");
      Replace with:
      Code:
      			return mb_strtoupper(mb_substr($input, 0, 1, "UTF-8"), "UTF-8") . mb_substr($input, 1, mb_strlen($input, "UTF-8"), "UTF-8");
      Find:
      Code:
      			return mb_strtolower(mb_substr($input, 0, 1, "UTF-8")) . mb_substr($input, 1, mb_strlen($input, "UTF-8"), "UTF-8");
      Replace with:
      Code:
      			return mb_strtolower(mb_substr($input, 0, 1, "UTF-8"), "UTF-8") . mb_substr($input, 1, mb_strlen($input, "UTF-8"), "UTF-8");
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 7:18 PM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.