Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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 <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 $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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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 <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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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 $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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: Re: Adding Language Packs to 2.7.00 Reply #7 - Jul 27th, 2016 at 12:43pm Mark & QuoteQuote Code $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 $englishxxxlngver with the lowercase name of the specific language folder. Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: Adding Language Packs to 2.7.00 Reply #10 - Oct 30th, 2016 at 9:35am Mark & QuoteQuote Code <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 <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)} IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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)<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)<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. WWW IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2234 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 852 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged