Page Index Toggle Pages: 1 2 [3]  ReplyAdd Poll Send Topic
Very Hot Topic (More than 25 Replies) Adding Language Packs to 2.7.00 (Read 15060 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
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
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
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?

˜

Code
Select All
'staff' => q~Personal ˜ Intern~,
 'staffall' => q~Personal ˜ 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 ˜ 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)}
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 2 [3] 
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