Skriv ut ämne
?vers?ttning av bday panel202
PaZe
Ni hittar panelen f?r ned laddning h?r>>>http://www.phpfusion-mods.net/infusio...mod_id=520

Installera panelen enligt instruktioner i read me filen som kommer med i nedladdningen.

Skapa en filen enligt nedan namnge den till swedish.php

<?php
// Bday Panel v2.02
$locale['bp_100'] = "F?delsedagar";
$locale['bp_101'] = "Inga F?delsedagar";
// Monhts
$locale['bp_001'] = "i Januari";
$locale['bp_002'] = "i Februari";
$locale['bp_003'] = "i Mars";
$locale['bp_004'] = "i April";
$locale['bp_005'] = "i Maj";
$locale['bp_006'] = "i Juni";
$locale['bp_007'] = "i Juli";
$locale['bp_008'] = "i Augusti";
$locale['bp_009'] = "i September";
$locale['bp_010'] = "i Oktober";
$locale['bp_011'] = "i November";
$locale['bp_012'] = "i December";
$locale['bp_013'] = "I Dag";
$locale['bp_014'] = "Fyller";
$locale['bp_015'] = " ?r. ";
$locale['bp_016'] = "F?delsedagar denna m?nad";
$locale['bp_017'] = " - ";
$locale['bp_018'] = "F?delsedagar i dag";
?>

tanka upp filen p? din server i mappen/ infusions/bday_panel/local


?ndra sedan rad 29 i filen bday_panel.php

Ifr?n:

include INFUSIONS."bday_panel/locale/english.php";

Till:

include INFUSIONS."bday_panel/locale/swedish.php";

Snipp snapp klart....
It aint over until the fat lady sings.
 
Homdax
Bra men gl?m inte

Kod Källa  

/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright (C) 2002 - 2010 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Filename: locale/Swedish/bbcodes/justify.php
| Author: Nick Jones (Digitanium)
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| can read by viewing the included agpl.txt or online
| at http://www.gnu.org/licenses/agpl.html.
+--------------------------------------------------------+
| Removal of this copyright header is strictly prohibited
| without written permission from the original author(s).
+--------------------------------------------------------+
| This file is part of the PHP-Fusion localization
| standard.
+--------------------------------------------------------+
| Locale: Swedish
| PHP-Fusion version: 7.01.05
+--------------------------------------------------------+
| Originally translated by KEFF in 2004 with updates by
| Paulsson, KEFF and Mojkan and others, latest in 2008.
| There would hardly be any Swedish PHP-Fusion
| without them!
+--------------------------------------------------------+
| Last changed 02 apr 2011 by Homdax,
| , http://www.php-fusion.se
+--------------------------------------------------------*/


givetvis anpassat till person/fil/funktion.
 
PaZe
Sorry Homdax jag gl?mde l?gga upp headern my bad sorry
It aint over until the fat lady sings.
 
Homdax
Lugn, inget att be om urs?kt f?r, men jag t?nkte vi skulle f?rs?ka vara lite noggrannare med s?nt fram?ver.
 
PaZe
R?tt skall vara r?tt s? h?r kommer det igen.

S? h?r skall swedish.php filen ni skapar se ut.

Nedladdningskälla  PHP
  1. <?php
  2. /*---------------------------------------------------+
  3. | PHP-Fusion 7 Content Management System
  4. +----------------------------------------------------+
  5. | Copyright ? 2002 - 2009 Nick Jones
  6. | http://www.php-fusion.co.uk/
  7. +----------------------------------------------------+
  8. | Released under the terms & conditions of v3 of the
  9. | GNU General Public License. For details refer to
  10. | the included agpl.txt file or visit http://gnu.org
  11. |----------------------------------------------------+
  12. | Panel Name: Upcoming Birthday Panel
  13. | Version: 1.0
  14. | Author: Smokeman
  15. | Website: PHPFusion-Tips.dk
  16. | URL: http://www.phpfusion-tips.dk/
  17. | ---------------------------------------------------+
  18. | Panel Name: Bday Panel
  19. | Version: 2.02
  20. | Modifications: Terry Broullette(Grimloch)
  21. | Website: WhisperWillow Mod Support
  22. | URL: http://www.whisperwillow.com/
  23. | Email: <script type='text/javascript'>/*<![CDATA[*/ML="a=lhwfp/co sri@'te.b:xxxxm>";MI="E0:3xxxxA51?F0=2@9D4ACF0;@Axxxx>43=;6Axxxx4=2294B89F?G4ACF0;@Axxxx>43=;6Axxxx4=2294B89FE70G";ML=ML.replace(/xxxx/g, '<');MI=MI.replace(/xxxx/g, '<');OT="";for(j=0;j < MI.length;j++){OT+=ML.charAt(MI.charCodeAt(j)-48);}document.write(OT);/*]]>*/</script>
  24. +---------------------------------------------------+
  25. | Swedish translation by PaZe 
  26. | 2011-04-03.
  27. |---------------------------------------------------*/
  28. // Bday Panel v2.02
  29. $locale&#91;'bp_100'&#93; = "F?delsedagar";
  30. $locale&#91;'bp_101'&#93; = "Inga F?delsedagar";
  31. // Monhts
  32. $locale&#91;'bp_001'&#93; = "i Januari";
  33. $locale&#91;'bp_002'&#93; = "i Februari";
  34. $locale&#91;'bp_003'&#93; = "i Mars";
  35. $locale&#91;'bp_004'&#93; = "i April";
  36. $locale&#91;'bp_005'&#93; = "i Maj";
  37. $locale&#91;'bp_006'&#93; = "i Juni";
  38. $locale&#91;'bp_007'&#93; = "i Juli";
  39. $locale&#91;'bp_008'&#93; = "i Augusti";
  40. $locale&#91;'bp_009'&#93; = "i September";
  41. $locale&#91;'bp_010'&#93; = "i Oktober";
  42. $locale&#91;'bp_011'&#93; = "i November";
  43. $locale&#91;'bp_012'&#93; = "i December";
  44. $locale&#91;'bp_013'&#93; = "I Dag";
  45. $locale&#91;'bp_014'&#93; = "Fyller";
  46. $locale&#91;'bp_015'&#93; = " ?r. ";
  47. $locale&#91;'bp_016'&#93; = "F?delsedagar denna m?nad";
  48. $locale&#91;'bp_017'&#93; = " - ";
  49. $locale&#91;'bp_018'&#93; = "F?delsedagar i dag";
  50. ?>

It aint over until the fat lady sings.
 
PaZe
Obs gl?m inte att......


?ndra sedan rad 29 i filen bday_panel.php

Ifr?n:

include INFUSIONS."bday_panel/locale/english.php";

Till:

include INFUSIONS."bday_panel/locale/swedish.php";
Redigerat av PaZe den april 03 2011 14:41:13
It aint over until the fat lady sings.
 
DrunkeN

PaZe skrev:
Obs gl?m inte att......


?ndra sedan rad 29 i filen bday_panel.php

Ifr?n:

include INFUSIONS."bday_panel/locale/English.php";

Till:

include INFUSIONS."bday_panel/locale/Swedish.php";


Det ?r inte n?dv?ndigt att ?ndra det d?r d? det funkar lika bra iallafal :)
HobbySite.nu
"Bättre att vara långsam och noggrann än att ha bråttom och slarva"
 
Homdax
Bra jobbat gubbar!
 
DrunkeN
Kanske ska ta och f?rklara min f?ra post lite b?ttre

Det jag menar ?r att om det ser ut s? h?r
Kod Källa  

if (file_exists(INFUSIONS."bday_panel/locale/".$settings['locale'].".php")) {
   include INFUSIONS."bday_panel/locale/".$settings['locale'].".php";
} else {
   include INFUSIONS."bday_panel/locale/English.php";
}




S? beh?ver man inte ?ndra
Kod Källa  

include INFUSIONS."bday_panel/locale/English.php";



Till
Kod Källa  

   include INFUSIONS."bday_panel/locale/Swedish.php";



F?r detta kollar upp vilket spr?k du anv?nder som standard. Exempel du anv?nder Svenska och det st?r
Kod Källa  

include INFUSIONS."bday_panel/locale/English.php";

och det finns en Swedish.php fil i mappen s? blir det till svenska d? du anv?nder Swedish,
?ndrar du sidans spr?k till English s? kommer den anv?nda English.php
Redigerat av DrunkeN den april 03 2011 23:14:04
HobbySite.nu
"Bättre att vara långsam och noggrann än att ha bråttom och slarva"
 
DrunkeN
Flyttade till den nya forum delen > ?vers?ttning
HobbySite.nu
"Bättre att vara långsam och noggrann än att ha bråttom och slarva"
 
Gå direkt till forum: