Add Poll
 
Options: Text Color Split Pie
 
 
 
 
 
 
 
 
Poll Comment:
Max 500 characters. Remaining characters:
days and minutes. Leave it blank if you don't want to set it now.

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
Topic Summary - Displaying 15 post(s). Click here to show all
Posted by: Dandello
Posted on: Feb 3rd, 2017 at 11:06pm
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.

Posted by: pyragony54
Posted on: Nov 3rd, 2016 at 5:47pm
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 ˜ 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.
Posted by: Dandello
Posted on: Nov 3rd, 2016 at 4:02pm
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.
Posted by: pyragony54
Posted on: Nov 3rd, 2016 at 2:37pm
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?

˜

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

Posted by: pyragony54
Posted on: Nov 3rd, 2016 at 4:16am
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.
Posted by: Dandello
Posted on: Nov 2nd, 2016 at 11:02pm
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..
Posted by: Dandello
Posted on: Nov 2nd, 2016 at 3:47pm
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.
Posted by: pyragony54
Posted on: Nov 2nd, 2016 at 3:05pm
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.
Posted by: Dandello
Posted on: Nov 2nd, 2016 at 1:12pm
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.
Posted by: pyragony54
Posted on: Nov 2nd, 2016 at 12:54pm
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.
Posted by: Dandello
Posted on: Nov 2nd, 2016 at 12:32pm
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.
Posted by: pyragony54
Posted on: Nov 2nd, 2016 at 4:19am
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.
Posted by: pyragony54
Posted on: Nov 2nd, 2016 at 3:05am
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.
Posted by: Dandello
Posted on: Nov 1st, 2016 at 8:20pm
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; 

Posted by: pyragony54
Posted on: Nov 1st, 2016 at 7:01pm
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.