ZJSK.COM
welcome to my space
X
Search:  
 HOME   Problems when creating a new language file
Problems when creating a new language file
Published by: wktd 2009-01-08
Welcome to:zjsk.com

  • I ran the update from 1.6 to 1.7.1 and I was happy to see the process itself was very quick and easy.

    However I faced a problem with the language files. I had created a lang-finnish.php for my pixelpost 1.6 installation. The file didn't work with 1.7.1 so I figured that I have to make another file based on the lang-english.php that comes with the new installation package.

    So I duplicated lang-english.php, renamed it lang-finnish.php and translated the neccessary words. Then uploaded to my server and selected "finnish" at the admin panel "Base language setting". After this when I'm looking at my photoblog I get this error:

    "Error:
    Pixelpost has problem selecting a default language.
    Make sure that you have chosen a default language in the adminpanel."

    Even my admin panel goes blank, it just shows white screen when I hit refresh on my browser. The only way to get things back on track is to make another copy of lang-english.php, rename it lang-finnish.php (and overwrite the translated file on the server). That way I can see my admin panel again (but the photoblog still shows error) and my only choice is to set the default english file back into use.

    So the problem is that when I edit the language files it just crashes my photoblog. I tried to edit them with notepad, wordpad and even CPanel editor.


  • Well, the reason it is not documented is because in 1.8 this will be fixed.


  • Make sure that you save it in UTF-8 without BOM and using Unix-style Linebreaks.
    Best thing is you upload the original language files from the Pixelpost Download Package again to get rid of the errors first.
    Then open the lang-english.php and save it as lang-finnish.php without any further changes. If the errors return you know that your text editor does something wrong with your files and you should better use another


  • I had one ";" missing from the translated PHP file. Fixing it stopped the crashing of the admin panel, but didn't help with the error message. Same thing with opening lang-english.php and saving it as lang-finnish.php. I even tried another editor, conTEXT but it still won't work. Which editor are you using for this?

    Here are the contents of my translated file. Please, could someone try to create a working language file from this?

    /*
    Pixelpost version 1.7


    Version 1.7:
    Translation - GnuCash::
    Oct 20, 2008 To install (assuming "make" completed without any problems) you must be root . see the previous section for creating a new language file.
    http://wiki.gnucash.org/wiki/Translation
    HOME
    Development Team:
    Ramin Mehran, Will Duncan, Joseph Spurling,
    Piotr "GeoS" Galas, Dennis Mooibroek, Karin Uhlig, Jay Williams, David Kozikowski

    Former members of the Development Team:
    Connie Mueller-Goedecke
    Version 1.1 to Version 1.3: Linus

    Contact: thecrew (at) pixelpost (dot) org
    2007 Pixelpost.org

    Pixelpost www: http://www.pixelpost.org/
    Pixelpost wiki: http://wiki.pixelpost.org/
    Pixelpost forum: http://forum.pixelpost.org
    __________________________________________________ ___________________________
    Some text are generated by the script itself and not controlled through template design.
    Edit these lines of text in this file and have the script generate other wording or
    in other languages.
    __________________________________________________ ___________________________
    */

    /* Dont edit Edit */

    $_lang_file_translator = 'Jyri Kaasinen - Luonnoskirja.net';
    $_lang_file_email = 'jyrik@luonnoskirja.net';
    $_lang_file_rev = '1.7';

    // IMAGE NAVIGATION
    $lang_previous = "Edellinen";
    $lang_next = "Seuraava";
    $lang_no_previous = "Ei vanhempia kuvia";
    $lang_no_next = "Ei uudempia kuvia";
    $lang_latest = "Tuorein";
    $lang_first = "Ensimmäinen";
    $lang_browse_select_category = "Valitse luokitus";
    $lang_browse_all = "Kaikki";
    $lang_permalink = "Ikilinkki";
    $lang_paged_archive = "Arkisto";

    // COMMENTS
    $lang_message_missing_image = "No image selected. Comment was not saved.";
    $lang_message_missing_comment = "Lähetit tyhjän viestin. Viestiä ei tallennettu!";
    $lang_message_missing_name = "Lähetit nimettömän tai nimimerkittömän viestin. Viestiä ei tallennettu!";
    $lang_message_moderating_comment = "Viestisi on vastaanotettu. Se julkaistaan ylläpidon hyväksynnän jälkeen.";
    $lang_visit_homepage = "Vieraile kotisivulla";
    $lang_no_comments_yet = "Toistaiseksi ei kommentteja.";
    $lang_comment_thank_you = "Kiitos käynnistäsi ja jättämistäsi kommenteista. Odota hetki, ohjaudut takaisin sivulle.";
    $lang_comment_redirect = "Mikäli selaimesi ei ohjaudu, napsauta tätä linkkiä.";
    $lang_comment_redirect_error = "Comment submission error! Please click to be transferred back, if redirection doesn't work";
    $lang_comment_page_title = "Kommentti";
    $lang_comment_popup = "Kommentit";
    $lang_comment_popup_disabled = "Tämän kuvan kommentointi on estetty.";
    $lang_comment_plural = "Kommentit";
    $lang_comment_single = "Kommentti";

    // EXIF DATA
    $lang_exposure = "Valotusaika:";
    $lang_aperture = "Aukko:";
    $lang_capture_date = "Päiväys:";
    $lang_focal = "Polttoväli:";
    $lang_camera_maker = "Kameravalmistaja:";
    $lang_camera_model = "Kameramalli:";
    $lang_flash_fired = "Salama: Käytössä";
    $lang_flash_not_fired = "Salama: Ei käytössä";
    $lang_flash_not_detected = "Salama: Ei tunnistettu";
    $lang_iso = "ISO:";

    // Category
    $lang_category_singular = "Luokitus:";
    $lang_category_plural = "Luokitukset:";

    // Month and Day
    $lang_monday = "Maanantai";
    $lang_tuesday = "Tiistai";
    $lang_wednesday = "Keskiviikko";
    $lang_thursday = "Torstai";
    $lang_friday = "Perjantai";
    $lang_saturday = "Lauantai";
    $lang_sunday = "Sunnuntai";

    $lang_january = "Tammikuu";
    $lang_february = "Helmikuu";
    $lang_march = "Maaliskuu";
    $lang_april = "Huhtikuu";
    $lang_may = "Toukokuu";
    $lang_june = "Kesäkuu";
    $lang_july = "Heinäkuu";
    $lang_august = "Elokuu";
    $lang_september = "Syyskuu";
    $lang_october = "Lokakuu";
    $lang_november = "Marraskuu";
    $lang_december = "Joulukuu";

    // newly added
    $lang_message_banned_comment = "Kommenttiasi ei tallennettu! Se sisälsi yhden tai useamman estetyn sanan, sähköpostiosoitteen tai IP-osoitteen.";
    $lang_tags = "Tagit:
    ";
    $lang_none = "none";

    // Alternative language (PLEASE DO NOT TRANSLATE THESE!!!)
    $lang_alt_lang_dutch ="Nederlands";
    $lang_alt_lang_english ="English";
    $lang_alt_lang_french ="Français";
    $lang_alt_lang_german ="Deutsch";
    $lang_alt_lang_italian ="Italiano";
    $lang_alt_lang_norwegian ="Norsk";
    $lang_alt_lang_persian ="Farsi";
    $lang_alt_lang_polish ="Polski";
    $lang_alt_lang_portuguese ="Portuguès";
    $lang_alt_lang_simplified_chinese ="Chinese";
    $lang_alt_lang_spanish ="Español";
    $lang_alt_lang_swedish ="Svenska";
    $lang_alt_lang_japanese ="Japanese";
    $lang_alt_lang_danish ="Dansk";
    $lang_alt_lang_romanian ="Romana";
    $lang_alt_lang_hungarian ="Magyar";
    $lang_alt_lang_finnish ="Suomi";

    // Email Notification

    $lang_email_notification_subject = "New Comment";
    $lang_email_notification_pt1 = "Hello,
    A new comment has been made at your photoblog.

    ";
    $lang_email_notification_pt2 = "
    The comment is:
    ----------------------------------------------------------------------
    ";
    $lang_email_notification_pt3 = "by";
    $lang_email_notification_pt4 = "----------------------------------------------------------------------
    nnEmail sent by Pixelpost
    ";
    $lang_email_notificationplain_pt1 = "Hello,nA new comment has been made at your photoblog.";
    $lang_email_notificationplain_pt2 = "nnThe comment is:nn----------------------------------------------------------------------";
    $lang_email_notificationplain_pt3 = "by";
    $lang_email_notificationplain_pt4 = "nn----------------------------------------------------------------------nnEmail sent by Pixelpost";

    // Error message
    $lang_nothing_to_show = "Avataan pian! Ei vielä mitään nähtävää!";
    // Please do not translate any tags like this one:
    $lang_spamflood = "Kommenttien massapostituksen esto on kytketty päälle. Ennen kuin lähetät uuden viestin, ole hyvä ja odota vähintään: .";


    // RSS & ATOM Feeds
    $lang_comment_feed_title = "Newest comments on";
    $lang_comment_feed_image_title = "New comment on";
    ?>


  • The language has to be added to the array of supported languages. Otherwise it won't work. This array is located in the index.php for version 1.71


  • Okay, that fixed it in a minute. I didn't see this mentioned in any documentation, but perhaps I wasn't reading as carefully as required.

    Thanks for helping. It would have been impossible for me to solve this without help.


  • Sounds great. :D





  • What dress should i wear for an interview ?
    Financial Representative =Insurance salesman?

    You are looking at:zjsk.com's Problems when creating a new language file, click zjsk.com to home
  • xbmc won 39 t stream video after formatting cpu hd
  • firewall settings
  • stumped 33
  • protected smb shares problem
  • program icons for emulators
  • stepback not working
  • other remotes with xbmc
  • xbmc ftp server offline
  • music overlay no windowclose animation
  • cannot open smb shares with a space in
  • xbmc ftp filesystem
  • xbmc xbe playback problem
  • output to all speakers questions
  • upper limit on skin settings variable count
  •  
  • xbmc saving settings
  • slight parsing issue with skin setstring
  • a few problems
  • subtitle shadow border
  • having problems upgrading xbmc
  • does qos help with network performance
  • playlist not visible
  • cannot take screenshots 33
  • x y and z
  • h264 help
  • xbmc hangs in 360 menus
  • subtitles placement
  • regional support
  •  Homepage | Add to favorites | Contact us | Exchange links | LOGIN | Site map | 
    Copyright© 2008 zjsk.com        Site made:CFZ