Page Index Toggle Pages: 1 ReplyAdd Poll Send Topic
Normal Topic Translation issue (Read 1137 times)
 
Paste Member Name in Quick Reply Box Monni
Language
***
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Mood: Frustrated
Zodiac sign: Pisces
Translation issue
Sep 3rd, 2014 at 5:59pm
Mark & QuoteQuote  
In LogInOut.pm, there is code:

Code
Select All
     if ( $username =~ /[^ \w\x80-\xFF\[\]\(\)#\%\+,\-\|\.:=\?\@\^]/sm ) {
         fatal_error( 'invalid_character',
             "$loginout_txt{'35'} $loginout_txt{'241'}" );
     }
  



Here '35' and '241' needs to be combined as single translation, because in some languages there is no word boundary and the words are written differently in two cases where '35' is used.

Code
Select All
 Index: cgi-bin/yabb2/Languages/English/LogInOut.lng
 ===================================================================
 --- cgi-bin/yabb2/Languages/English/LogInOut.lng	(revision 1562)
 +++ cgi-bin/yabb2/Languages/English/LogInOut.lng	(working copy)
 @@ -17,6 +17,7 @@
  %loginout_txt = (
  '34' => 'Login',
  '35' => 'User ID or e-mail address',
 +'35a' => 'User ID or e-mail address field.',
  '35b' => 'User ID, Screen Name or e-mail address',
  '36' => 'Password',
  '36b' => 'Password Reset',
 Index: cgi-bin/yabb2/Sources/LogInOut.pm
 ===================================================================
 --- cgi-bin/yabb2/Sources/LogInOut.pm	(revision 1562)
 +++ cgi-bin/yabb2/Sources/LogInOut.pm	(working copy)
 @@ -46,7 +46,7 @@
      $username =~ s/\s/_/gxsm;
      if ( $username =~ /[^ \w\x80-\xFF\[\]\(\)#\%\+,\-\|\.:=\?\@\^]/sm ) {
          fatal_error( 'invalid_character',
 -            "$loginout_txt{'35'} $loginout_txt{'241'}" );
 +            "$loginout_txt{'35a'}" );
      }

      ## Check if login ID is not an email address ##
  

  
Back to top
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
YaBB Modder
*****
Offline


I love YaBB 2.7!

Posts: 2234
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Mood: Annoyed
Zodiac sign: Virgo
Re: Translation issue
Reply #1 - Sep 3rd, 2014 at 6:29pm
Mark & QuoteQuote  
Works for me.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
ReplyAdd Poll Send Topic
Bookmarks: del.icio.us Digg Facebook Google LinkedIn reddit Twitter Yahoo
Translation issue

Please type the characters exactly as they appear in the image,
without the first 2 and last 2 characters.
The characters must be typed in the same order,
and they are case-sensitive.
Open Preview Preview

You can resize the textbox by dragging the right or bottom border.
Off Topic Comment Insert Spoiler
Insert Hyperlink Insert FTP Link Insert Image Insert E-mail Insert Media Insert Table Insert Table Row Insert Table Column Insert Horizontal Rule Insert Teletype Insert Code Insert Quote Edited Superscript Subscript Insert List /me - my name Insert Marquee Insert Timestamp No Parse
Bold Italicized Underline Insert Strikethrough Highlight
                       
Change Text Color
Insert Preformatted Text Left Align Centered Right Align
resize_wb
resize_hb







Max 5000 characters. Remaining characters:
Text size: %
More Smilies
View All Smilies
Collapse additional features Collapse/Expand additional features Smiley Wink Cheesy Grin Angry Sad Shocked Cool Huh Roll Eyes Tongue Embarrassed Lips Sealed Undecided Kiss Cry