Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Translation issue (Read 1682 times)
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Translation issue
Reply #1 - Sep 3rd, 2014 at 6:29pm
Print Post  
Works for me.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Translation issue
Sep 3rd, 2014 at 5:59pm
Print Post  
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
 
Page Index Toggle Pages: 1
Send TopicPrint