Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Suomi Support Mod (Read 20752 times)
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Suomi Mod
Reply #7 - Jul 19th, 2014 at 1:29am
Print Post  
Dandello wrote on Jul 19th, 2014 at 12:57am:
I was referring to the Today and Yesterday issue.  Grin


Today
Estonian = täna
Latvian = šodien
Lithuanian = šiandien
Livonian = tämpõ
Swedish = idag
Norwegian = idag
Danish = i dag

Yesterday
Estonian = eile
Latvian = vakar
Lithuanian = vakar
Livonian = eggiļ
Swedish = igår
Norwegian = igår
Danish = i går

... all lower case
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Suomi Mod
Reply #6 - Jul 19th, 2014 at 12:57am
Print Post  
I was referring to the Today and Yesterday issue.  Grin
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Suomi Mod
Reply #5 - Jul 18th, 2014 at 11:35pm
Print Post  
Dandello wrote on Jul 18th, 2014 at 10:50pm:
Maybe that's something that can be revisited if there's another language being translated that has similar grammar rules.


I know quite a few languages where month names are lower case... For example: Estonian, Latvian, Lithuanian, Swedish, Norwegian, Danish, Livonian Wink...
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Suomi Mod
Reply #4 - Jul 18th, 2014 at 10:50pm
Print Post  
Maybe that's something that can be revisited if there's another language being translated that has similar grammar rules.
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Suomi Mod
Reply #3 - Jul 18th, 2014 at 10:10pm
Print Post  
Dandello wrote on Jul 18th, 2014 at 9:44pm:
So, in Finnish the months are lowercase if they aren't the first item in the date string?


Yes. There is pretty strict rules about using dates, but I don't want to make it too complicated. I didn't make lower case versions of "Today" and "Yesterday" because it would make the patch too long and complicated to maintain.
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Re: Suomi Mod
Reply #2 - Jul 18th, 2014 at 9:44pm
Print Post  
So, in Finnish the months are lowercase if they aren't the first item in the date string?
  

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Monni
Senior Member
****
Offline


Min izāmō

Posts: 413
Location: Kaarina, Finland
Joined: Jul 16th, 2014
Gender: Male
Re: Suomi Mod
Reply #1 - Jul 18th, 2014 at 9:16pm
Print Post  
Improved patch to make month names lowercase when the selected format is day before month

Code
Select All
Index: cgi-bin/yabb2/Languages/English/Main.lng
===================================================================
--- cgi-bin/yabb2/Languages/English/Main.lng	(revision 1511)
+++ cgi-bin/yabb2/Languages/English/Main.lng	(working copy)
@@ -18,6 +18,7 @@

 @days = ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
 @months = ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
+@months_m = ('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
 @days_short = ('Sun','Mon','Tue','Wed','Thu','Fri','Sat'); # for smtp

 %maintxt = (
@@ -129,6 +130,8 @@
 '758' => 'Moved',
 '769' => 'Today',
 '769a'=> 'Yesterday',
+'770' => '', #month suffix for January 1.
+'770a' => '', #month suffix for 1. January
 '773' => 'Would you like to print this page now?',
 '900b' => 'Back',
 '900s' => 'Submit',
Index: cgi-bin/yabb2/Sources/DateTime.pm
===================================================================
--- cgi-bin/yabb2/Sources/DateTime.pm	(revision 1511)
+++ cgi-bin/yabb2/Sources/DateTime.pm	(working copy)
@@ -205,7 +205,7 @@
     $newmonth     = sprintf '%02d', $newmonth;
     $newshortyear = ( $newyear % 100 );
     $newshortyear = sprintf '%02d', $newshortyear;
-    if ( $mytimeselected != 4 && $mytimeselected != 8 ) {
+    if ( $mytimeselected != 4 && $mytimeselected != 6 && $mytimeselected != 8 ) {
         $newday = sprintf '%02d', $newday;
     }
     $newhour   = sprintf '%02d', $newhour;
@@ -465,7 +465,7 @@
     $ampm = $newhour > 11 ? 'pm' : 'am';
     $newhour2 = $newhour % 12 || 12;
     if   ($use_rfc) { $newmonth2 = $months_rfc[ $newmonth - 1 ]; }
-    else            { $newmonth2 = $months[ $newmonth - 1 ]; }
+    else            { $newmonth2 = $months_m[ $newmonth - 1 ]; }
     $newday2 = "$timetxt{'4'}";
     if ( $newday > 10 && $newday < 20 ) {
         $newday2 = "$timetxt{'4'}";
@@ -481,13 +481,13 @@
         $newformat =
           $daytxt
           ? qq~$daytxt $maintxt{'107'} $newhour2:$newminute$ampm~
-          : qq~$newmonth2 $newday$newday2, $newyear $maintxt{'107'} $newhour2:$newminute$ampm~;
+          : qq~$newmonth2$maintxt{'770'} $newday$newday2, $newyear $maintxt{'107'} $newhour2:$newminute$ampm~;
     }
     else {
         $newformat =
           $daytxt
           ? qq~$daytxt $maintxt{'107'} $newhour2:$newminute$ampm~
-          : qq~$newday$newday2 $newmonth2, $newyear $maintxt{'107'} $newhour2:$newminute$ampm~;
+          : qq~$newday$newday2 $newmonth2$maintxt{'770a'}, $newyear $maintxt{'107'} $newhour2:$newminute$ampm~;
     }

     return $newformat;
@@ -508,11 +508,11 @@
 sub time_6 {
     my ( $daytxt, $newday, $newmonth, $newyear, $newhour, $newminute ) = @_;
     if   ($use_rfc) { $newmonth2 = $months_rfc[ $newmonth - 1 ]; }
-    else            { $newmonth2 = $months[ $newmonth - 1 ]; }
+    else            { $newmonth2 = $months_m[ $newmonth - 1 ]; }
     $newformat =
       $daytxt
       ? qq~$daytxt $maintxt{'107'} $newhour:$newminute~
-      : qq~$newday. $newmonth2 $newyear $maintxt{'107'} $newhour:$newminute~;
+      : qq~$newday. $newmonth2$maintxt{'770a'} $newyear $maintxt{'107'} $newhour:$newminute~;

     return $newformat;
 }
@@ -591,7 +591,7 @@
     $ampm = $newhour > 11 ? 'pm' : 'am';
     $newhour2 = $newhour % 12 || 12;
     if   ($use_rfc) { $newmonth2 = $months_rfc[ $newmonth - 1 ]; }
-    else            { $newmonth2 = $months[ $newmonth - 1 ]; }
+    else            { $newmonth2 = $months_m[ $newmonth - 1 ]; }
     $newday2 = "$timetxt{'4'}";
     if ( $newday > 10 && $newday < 20 ) {
         $newday2 = "$timetxt{'4'}";
@@ -606,7 +606,7 @@
     $newformat =
       $daytxt
       ? qq~$daytxt $maintxt{'107'} $newhour2:$newminute$ampm~
-      : qq~$newday$newday2 $newmonth2, $newyear $maintxt{'107'} $newhour2:$newminute$ampm~;
+      : qq~$newday$newday2 $newmonth2$maintxt{'770a'}, $newyear $maintxt{'107'} $newhour2:$newminute$ampm~;

     return $newformat;
 }
 



I will include the Finnish version of @months_m in the next version of the Finnish language packs.
  
Back to top
IP Logged
 
Dandello
Forum Administrator
*****
Offline


I love YaBB 2.7!

Posts: 1759
Location: The Land of YaBB
Joined: Feb 12th, 2014
Gender: Female
Suomi Support Mod
Jul 18th, 2014 at 3:12am
Print Post  
Adds the Finnish date suffixes. 
« Last Edit: Jul 28th, 2014 at 1:06pm by Dandello »  

Suomi_date_support_01.zip (Attachment deleted | 40 Downloads )

Perfection is not possible. Excellence, however, is excellent.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint