Dandello Forum AdministratorYaBB Modder Offline I love YaBB 2.7! Posts: 2276 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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 '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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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 'staff' => q~Personal ˜ Intern~, 'staffall' => q~Personal ˜ 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2276 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: Re: Adding Language Packs to 2.7.00 Reply #33 - Nov 3rd, 2016 at 2:37pm Mark & QuoteQuote Now I understand it. Code 'staff' => q~Staff to Staff~, 'staffall' => q~Staff to All~, Code 'staff' => q{Personal ~ Intern}, 'staffall' => q{Personal ~ Mitglieder}, Can I do this? ˜ Code 'staff' => q~Personal ˜ Intern~, 'staffall' => q~Personal ˜ Mitglieder~, if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2276 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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 | 424 Downloads ) Perfection is not possible. Excellence, however, is excellent. WWW IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2276 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2276 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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 '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 '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) fatal_error('default_password'); add before: Code (Perl) 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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 | 446 Downloads ) if (idea == 'none') {use (manuals) && (Google | | search)}if ($ answer == 0) {post (question)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2276 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged
Dandello Forum Administrator Offline I love YaBB 2.7! Posts: 2276 Location: The Land of YaBB Joined: Feb 12th, 2014 Gender: Mood: Annoyed Zodiac sign: 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) my $cur_sid = decloak( $INFO{'sid'} ); and make it Code (Perl) 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. WWW IP Logged
pyragony54 Language Offline I Love YaBB! Posts: 882 Location: Йошкар-Ола Joined: May 25th, 2014 Gender: Mood: Dead Zodiac sign: 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)} IP Logged