Page Index Toggle Pages: [1]  ReplyAdd Poll Send Topic
Very Hot Topic (More than 25 Replies) Adding Language Packs to 2.7.00 (Read 15062 times)
 
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
Adding Language Packs to 2.7.00
Feb 18th, 2016 at 3:59pm
Mark & QuoteQuote  
Edited:
In order to add language packs before using Setup or Convert, the 'add language packs as a mod' has been dropped. Language packs should simply be uploaded to the Languages folder. This will allow users to choose that language for Setup and Convert. The additional Language dropdown information has been moved to Settings.pm


2.7.00 has an additional step for adding a Language Pack so that the new folders are added YaBMod's folder list and the Languages/Lang.lng file (new to 2.7.00) has the new information for the Language dropdowns.

Here is a copy of the Add_German Mod:
Code
Select All
<id>
 Add German Language for YaBB 2.7.00
 </id>

 <version>
 0.1
 </version>

 <mod info>
 This mod adds the internal references for the German Language Pack.
 Note: The German Language pack must be uploaded first.

 Version History
 ---------------
 0.1 - First release - Feb 18, 2016

 Instructions:

 Apply the mod using YaBMod.
 </mod info>

 <author>
 Dandello
 </author>

 <homepage>
 http://www.yabbforumsoftware.com/cgi-bin/yabb2/YaBB.pl
 </homepage>

 <edit file>
 Admin/ModList.pm
 </edit file>

 <search for>
 ### END BOARDMOD ANCHOR ###
 </search for>

 <add before>
     $add_german = q~Add German Language for YaBB 2.7.00|Dandello|This mod adds the internal references for the German Language Pack.|0.1|2/17/2016~;
     push @installed_mods, $add_german;
 </add before>

 <edit file>
 Admin/YaBMod.pm
 </edit file>

 <search for>
 if (@yabmodpmmods) {
 </search for>

 <add before>
 push @yabmodpmmods, 'German Lang';
 </add before>

 <search for>
                     || $files_name_cgi eq 'Members/'
 </search for>

 <add before>
                     || $files_name_cgi eq 'Languages/German/'
                     || $files_name_cgi eq 'Languages/German/Mods/'
 </add before>

 <edit file>
 Languages/Lang.lng
 </edit file>

 <search for>
 1;
 </search for>

 <add before>
 $lngs{'German'} = 'Deutsch';
 </add before>

  



Code
Select All
$lngs{'German'} = 'Deutsch'; 


The highlighted section is the name of the language folder.

Needless to say, if you're the one packaging the language, use your own name and site as the author.

 
« Last Edit: Oct 5th, 2017 at 1:24pm by Dandello »  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #1 - Mar 26th, 2016 at 8:59pm
Mark & QuoteQuote  
Should not that look like for German?

Code
Select All
<edit file>
 Admin/YaBMod.pm
 </edit file>

 <search for>
 if (@yabmodpmmods) {
 </search for>

 <add before>
 push @yabmodpmmods, 'German Lang';
 push @yabmodpmmods, 'German_Du Lang';
 </add before>

 <search for>
                     || $files_name_cgi eq 'Members/'
 </search for>

 <add before>
                     || $files_name_cgi eq 'Languages/German/'
                     || $files_name_cgi eq 'Languages/German/Mods/'
                     || $files_name_cgi eq 'Languages/German_Du/'
                     || $files_name_cgi eq 'Languages/German_Du/Mods/'
 </add before>

 <edit file>
 Languages/Lang.lng
 </edit file>

 <search for>
 1;
 </search for>

 <add before>
 $lngs{'German'} = 'Deutsch';
 $lngs{'German_Du'} = 'Deutsch_Du';
 </add before> 

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #2 - Mar 27th, 2016 at 12:43am
Mark & QuoteQuote  
I figure some people will choose only one version of German. So I just did the German rather than both German and German_Du.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #3 - Mar 27th, 2016 at 5:31am
Mark & QuoteQuote  
I wonder if I just do a German abstract and generalize.

German
Hier können sie

German Du
Hier kannst du

Universal
Hier kann man

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #4 - Mar 27th, 2016 at 3:41pm
Mark & QuoteQuote  
Whatever you think is best - you're our expert for German. We have no stats (as far as I know) on how many forums install just one of the German versions or how many people choose German Du over German (or vice versa) when given a choice.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #5 - Mar 28th, 2016 at 8:50pm
Mark & QuoteQuote  
So I tend for German_Du version. The I actually enforced majority.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #6 - Jul 27th, 2016 at 6:07am
Mark & QuoteQuote  
@ Dandello

must be changed for the German translation of something here?


Code
Select All
$englishadminlngver = 'YaBB 2.7.00 $Revision: 1688 $';
 @englishadminlngmods = ();
 if (@englishadminlngmods) {
     $englishadminlngmods = 1;
 }
 if ( $action eq 'detailedversion' && $language ne 'English' ) { return 1; } 

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #7 - Jul 27th, 2016 at 12:43pm
Mark & QuoteQuote  
Code
Select All
$germanadminlngver = 'YaBB 2.7.00 $Revision: 1688 $';
 @germanadminlngmods = ();
 if (@germanadminlngmods) {
     $germanadminlngmods = 1;
 }
 if ( $action eq 'detailedversion' && $language ne 'German' ) { return 1; }  



For each German language file replace the
Code
Select All
$englishxxxlngver 

with the lowercase name of the specific language folder.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #8 - Jul 27th, 2016 at 3:08pm
Mark & QuoteQuote  
I thought to myself. But then quite German and German_Du would be possible.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #9 - Jul 27th, 2016 at 5:15pm
Mark & QuoteQuote  
Yes, German and German_Du would be very possible. The question really is, is there a real need for two different German language packs? As the translator, it's your call.

  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #10 - Oct 30th, 2016 at 9:35am
Mark & QuoteQuote  
Code
Select All
<search for>
                     || $files_name_cgi eq 'Members/'
 </search for>

 <add before>
                     || $files_name_cgi eq 'Languages/German/'
                     || $files_name_cgi eq 'Languages/German/Mods/'
 </add before>
  




Korrektur

Code
Select All
<search for>
                     && $files_name_cgi ne 'Members/'
 </search for>

 <add before>
                     && $files_name_cgi ne 'Languages/German/'
                     && $files_name_cgi ne 'Languages/German/Mods/'
 </add before>
  




  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #11 - Oct 30th, 2016 at 10:29am
Mark & QuoteQuote  
Here are the first german files. It is not yet translated, since I do not yet understand the connections.
Problem: As a guest, I see everything in German language, so can switch to German in the pull-down. After the login everything is only in English. In the forum setting, I can change to German, but it remains English, even if then German stands. If I want to change the control center in German, I get the following error message

Quote:
Untrapped Error :
Undefined subroutine &main::getMailFiles called at Sources/Notify.pm line 349.


I do not know why.

Go to:
http://yabbtest.de

Your admin profile is saved there.

German_Du is not available yet.

Edited:
Deleted, to many errors


« Last Edit: Nov 1st, 2016 at 6:28am by pyragony54 »  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #12 - Oct 30th, 2016 at 1:32pm
Mark & QuoteQuote  
Thanks for the catch - in Notify.pm change both 'getMailFiles()' to 'get_mail_files()'.

There are still a lot of glitches in 2.7.0 due to trying to bring it to the higher standards of no subroutines or variables having mixed upper and lowercase letters in their names.

Also, here:
Code (Perl)
Select All
<add before>
     $add_german = q~Add German Language for YaBB 2.7.00|Dandello|This mod adds the internal references for the German Language Pack.|0.1|2/17/2016~;
     push @installed_mods, $add_german;
 </add before> 



Needs to be
Code (Perl)
Select All
<add before>
     my $add_german = q~Add German Language for YaBB 2.7.00|Dandello|This mod adds the internal references for the German Language Pack.|0.1|2/17/2016~;
     push @installed_mods, $add_german;
 </add before> 



Strict requires all variables to be 'owned' explicitly.

In the language files, many of the variables have been removed and replaced with {yabb variable} so the language files won't throw a lot of errors and warnings to the server error log.

Edited:
I'm going away from nt desk for the day but tomorrow I'll see if I can sort out the other issues you've described.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #13 - Oct 30th, 2016 at 1:37pm
Mark & QuoteQuote  
I'll get the newest fixes into the SVN tonight or tomorrow.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #14 - Oct 30th, 2016 at 2:03pm
Mark & QuoteQuote  
Okay, the error message is now gone, but it does not switch to German.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #15 - Oct 30th, 2016 at 2:07pm
Mark & QuoteQuote  
Quote:
In the language files, many of the variables have been removed and replaced with {yabb variable} so the language files won't throw a lot of errors and warnings to the server error log.


I have to take a closer look. Maybe I overlooked some changes.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #16 - Oct 31st, 2016 at 1:24pm
Mark & QuoteQuote  
Current bug-fixed version of Load.pm  Embarrassed
  

Load_270.zip ( 11 KB | 202 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #17 - Oct 31st, 2016 at 7:22pm
Mark & QuoteQuote  
Rev 1747 will not start.

Quote:
Global symbol "$session_id" requires explicit package name at Setup.pl line 159.
BEGIN not safe after errors--compilation aborted at Setup.pl line 230.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #18 - Oct 31st, 2016 at 8:00pm
Mark & QuoteQuote  
under 'use warnings;' add 'no warnings qw(uninitialized);'
  Smiley
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #19 - Oct 31st, 2016 at 10:23pm
Mark & QuoteQuote  
AACKK!!
There are days that staying in bed is a really good idea - there were typos in Setup.pl. The newest one in the SVN should be good.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #20 - Nov 1st, 2016 at 7:36am
Mark & QuoteQuote  
I know such days as well. The German files I have deleted for the time being. Too many errors. Will try to finish them tonight (CET time).

I know I can be quite annoying, but when I'm really getting something, it does not take long before Alpha becomes a Beta.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #21 - Nov 1st, 2016 at 1:48pm
Mark & QuoteQuote  
Today sometime I'll have the finalized English into the SVN and upload a copy of the Language Compare utility here. The utility should make it easier for you to locate the items that have changed from 2.6.

Note: even if an item is a place holder for another language and could be safely left out in 2.6,  it can't be left out anymore and has to have a blank value instead.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #22 - Nov 1st, 2016 at 7:01pm
Mark & QuoteQuote  
Dandello wrote on Nov 1st, 2016 at 1:48pm:
Note: even if an item is a place holder for another language and could be safely left out in 2.6,  it can't be left out anymore and has to have a blank value instead.
                     

I thought so. no problem


Can not make password more secure.

An Error Has Occurred. Use of uninitialized value $cur_sid in addition (+) at Sources/Profile.pm line 191.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #23 - Nov 1st, 2016 at 8:20pm
Mark & QuoteQuote  
pyragony54 wrote on Nov 1st, 2016 at 7:01pm:
Can not make password more secure.

An Error Has Occurred. Use of uninitialized value $cur_sid in addition (+) at Sources/Profile.pm line 191.
                   


How were you trying to make the password more secure?
$cur_sid comes out of the browser url string when you're editing your profile. It keeps track of how long you've been logged into the edit profile section. If you're properly logged into your profile that should never be uninitialized.

That said: in Profiles.pm find
Code (Perl)
Select All
    my $cur_sid   = decloak( $INFO{'sid'} ); 

and make it
Code (Perl)
Select All
    my $cur_sid   = decloak( $INFO{'sid'} ) || 0; 

« Last Edit: Nov 1st, 2016 at 11:11pm by Dandello »  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #24 - Nov 2nd, 2016 at 3:05am
Mark & QuoteQuote  
I had badly circumscribed this. When you go to the admincenter for the first time, you are prompted to change your password to make it safer. Now it works. On the next bug, which I have yet to find.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #25 - Nov 2nd, 2016 at 4:19am
Mark & QuoteQuote  
Next:

Quote:
Attempt to reload /var/www/vhosts/yabbtest.de/cgi-bin/yabb2/Languages/German/Error.lng aborted.
Compilation failed in require at ./Sources/Subs.pm line 2553.


But I find in the Error.lng no more error.

Even if I am registered, I can not switch to German. As a guest already.
« Last Edit: Nov 2nd, 2016 at 6:15am by pyragony54 »  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #26 - Nov 2nd, 2016 at 12:32pm
Mark & QuoteQuote  
I'll check this as soon as I've had my morning's coffee. However, I suspect I'll need a copy of the German Pack you're working on. The one I'm using for testing is the 2.6 version with the blanks filled in from English.

The Error.lng problem may actually indicate a YaBB error so serious that the error reporting section couldn't even load the Error.lng file. The other indicator for that is if 'Other.template' can't load.

Edited:
Ah HAH - I was able to get the first reported arror to show.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #27 - Nov 2nd, 2016 at 12:54pm
Mark & QuoteQuote  
But gladly. Should actually be almost without errors, however, some places are not yet translated, since I do not know the connections yet. I can do this only when I can switch to German.
  

German_Land_Alpha.zip ( 138 KB | 206 Downloads )

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #28 - Nov 2nd, 2016 at 1:12pm
Mark & QuoteQuote  
The login with admin password issue fix:
In Error.lng find
Code
Select All
'default_password'    => qq~You are still using the YaBB Setup default password. Please login to your <a href="$scripturl?action=myprofile;username=$username">User profile</a> and change your password to something more secure.~, 


make it
Code
Select All
'default_password'    => qq~You are still using the YaBB Setup default password. Please login to your <a href="$scripturl?action=myprofile;username=$username;sid=$mysid">User profile</a> and change your password to something more secure.~, 



In Admin.pm find
Code (Perl)
Select All
            fatal_error('default_password'); 


add before:
Code (Perl)
Select All
            our $mysid = cloak( reverse substr $date, 5, 5 ); 



This is one of the reasons Alpha and Beta testers are so valuable. I never checked that link since I automatically go directly to Edit Profile before trying to login to the Admin Center.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #29 - Nov 2nd, 2016 at 3:05pm
Mark & QuoteQuote  
It is working. Please write in SVN.

Now only the most important is missing. Switch from English to German.
I will regularly update the German files.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #30 - Nov 2nd, 2016 at 3:47pm
Mark & QuoteQuote  
I'll get it into the SVN as soon as I've finished checking the files in the German_Land zip. One big problem - 2.7.00 is UTF-8 only. I have some errands to run this morning but I should be done with the checks today.

One thing I've noticed: if a string is quoted as q~ STRING 'HERE'~ you don't need to use \' on the quote marks (because those aren't the markers for the begining and end of the string). However, you do have to use \~ if ~ is inside the quote.

Edited:
The problems you may be having with switching to German is that the German files have issues.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #31 - Nov 2nd, 2016 at 11:02pm
Mark & QuoteQuote  
Here is a (pretty much) fixed version of the German files (This version is currently over on the  Strict test board.)

I found some other issues on the Strict test board I need to square away but I should be able to update the SVN later today or tomorrow..
  

German_Land_b.zip ( 135 KB | 213 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #32 - Nov 3rd, 2016 at 4:16am
Mark & QuoteQuote  
Dandello wrote on Nov 2nd, 2016 at 3:47pm:
One thing I've noticed: if a string is quoted as q~ STRING 'HERE'~ you don't need to use \' on the quote marks (because those aren't the markers for the begining and end of the string). However, you do have to use \~ if ~ is inside the quote.


I thought so, but I did not know.

Will test it this afternoon and finish up tomorrow morning German_Du.
  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #33 - Nov 3rd, 2016 at 2:37pm
Mark & QuoteQuote  
Now I understand it.

Code
Select All
'staff' => q~Staff to Staff~,
 'staffall' => q~Staff to All~, 



Code
Select All
'staff' => q{Personal ~ Intern},
 'staffall' => q{Personal ~ Mitglieder}, 



Can I do this?

&tilde;

Code
Select All
'staff' => q~Personal &tilde; Intern~,
 'staffall' => q~Personal &tilde; Mitglieder~, 

  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #34 - Nov 3rd, 2016 at 4:02pm
Mark & QuoteQuote  
That should work. Or you can use \~. But there's also no reason you can't go ahead and use q{Item ~ here.}  Just keep in mind that YaBB uses {} for marking things to be replaced so you want to be careful using curly brackets.

If you look in Perl coding books, most people use q{ } or q/ / or ' ' as their uninterpolated string brackets. ( qq{ } and " " indicate interpolated strings inside. ) YaBB uses so many curly brackets for other things that YaBB has gone with ~~ for the string brackets - but you can choose what bracket works best for what you're doing.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Paste Member Name in Quick Reply Box pyragony54
Language
***
Offline


I Love YaBB!

Posts: 852
Location: Йошкар-Ола
Joined: May 25th, 2014
Gender: Male
Mood: Dead
Zodiac sign: Scorpio
Re: Adding Language Packs to 2.7.00
Reply #35 - Nov 3rd, 2016 at 5:47pm
Mark & QuoteQuote  
I have to admit that I never talked with Perl. Now try a little experiment. Now I understand it. Thanks for the correction.


Code
Select All
'staff' => q~Personal &tilde; Intern~,
 'staffall' => q~Personal &tilde; Mitglieder~,  



Works perfectly. I do not want to change the Perl codes unnecessarily large, otherwise I search in later versions again.
« Last Edit: Nov 3rd, 2016 at 7:08pm by pyragony54 »  

if (idea == 'none') {use (manuals) && (Google | | search)}
if ($ answer == 0) {post (question)}
Back to top
 
IP Logged
 
Paste Member Name in Quick Reply Box Dandello
Forum Administrator
*****
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: Adding Language Packs to 2.7.00
Reply #36 - Feb 3rd, 2017 at 11:06pm
Mark & QuoteQuote  
Checking mods lead to one more change:
in Menu.lng, in the %img_txt hash add
Code
Select All
'no_text' => q~no text - ~, 

(just add it above the ); at the end of that hash.

This is a placeholder for items that should be in the tabtext.txt file but might not be. So this bit of lets you know that the text is missing and what action it's supposed to be related to.

  

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
Adding Language Packs to 2.7.00

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 10000 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