Page 1 of 2 12 LastLast
Results 1 to 10 of 18
  1. #1
    Join Date
    Apr 2009
    Posts
    26
    Plugin Contributions
    0

    Default Trouble finding some text which need translation

    I have upgraded from 1.55e to 1.57d. The shop is working OK, but there are some text elements I would like to translate into norwegian.
    But I can't find the files where these elements are, have been trying all variants of search with developer tool. So far - no.
    One element shows up in the email I get when a new order is placed (email_order).
    Another one shows up if I ask a question (ask_a_question).
    And a third is in Admin when looking for customers (customerlist).
    Where do I find the files holding those "ghost" text elements?

    Geir

    ZC 1.57d
    PHP 7.4.29
    https://osteroy-sogelag.org/butikk157d
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	ask_a_question.jpg 
Views:	23 
Size:	4.2 KB 
ID:	19980   Click image for larger version. 

Name:	customerlist.jpg 
Views:	22 
Size:	28.0 KB 
ID:	19981  
    Attached Images Attached Images  

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    8,824
    Plugin Contributions
    118

    Default Re: Trouble finding some text which need translation

    Instead of using images, please just enter the define for the string you need (e.g. EMAIL_TEXT_TELEPHONE for the first one).
    Then I'll tell you where to find them in 1.5.7.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Apr 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: Trouble finding some text which need translation

    Ok, here they come:
    EMAIL_TEXT_TELEPHONE
    NAVBAR_TITLE
    SEARCH_DEFAULT_TEXT
    TEXT_INFO_ADDRESS_BOOK_COUNT_SINGLE
    Very glad if you will tell me where to find the define for those strings.
    Geir

  4. #4
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,417
    Plugin Contributions
    16

    Default Re: Trouble finding some text which need translation

    Quote Originally Posted by Ormhaugen View Post
    EMAIL_TEXT_TELEPHONE
    includes/languages/YOUR_LANGUAGE/email_extras.php
    OR
    includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/email_extras.php

    NAVBAR_TITLE
    Assuming this is from "ask a question":
    includes/languages/YOUR_LANGUAGE/ask_a_question.php
    OR
    includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/ask_a_question.php

    SEARCH_DEFAULT_TEXT
    This is not supposed to be in 1.5.7d customers... Probably somewhere else?

    TEXT_INFO_ADDRESS_BOOK_COUNT_SINGLE
    YOUR_ADMIN/includes/languages/YOUR_LANGUAGE/customers.php

    I'm assuming you're using a Norwegian language pack that hasn't been updated for 1.5.7 so it's missing some definitions, meaning you'll have to add it manually.
    Zen Cart Point of Sale? Sure: ZX POS - v2 released
    My site - Pro ZC Help | My portfolio | My plugins

  5. #5
    Join Date
    Apr 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: Trouble finding some text which need translation

    Quote Originally Posted by balihr View Post
    includes/languages/YOUR_LANGUAGE/email_extras.php
    OR
    includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/email_extras.php
    - I was a bit unprecise in my posting. The expression 'EMAIL_TEXT_TELEPHONE' show up together with the delivering address for a customer, both in email to the customer and in email to admin. Sorry.
    - I have compared my email_extras.php with the English version, and found that "define('EMAIL_TEXT_TELEPHONE', 'Telephone: ');" was missing in my Norwegian translation. But in spite putting this line into my Norwegian file, I still get this expression in the customer email. Have cleaned cache, tried another browser. Still the same

    Assuming this is from "ask a question":
    includes/languages/YOUR_LANGUAGE/ask_a_question.php
    OR
    includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE/ask_a_question.php
    - Compared the eng/norw files, but can't find anything that changes the text from english to norwegian. Anything else?

    This is not supposed to be in 1.5.7d customers... Probably somewhere else?
    - I find text in several English files, all seems to be translated into Norwegian. So what?


    YOUR_ADMIN/includes/languages/YOUR_LANGUAGE/customers.php

    I'm assuming you're using a Norwegian language pack that hasn't been updated for 1.5.7 so it's missing some definitions, meaning you'll have to add it manually.
    - Correct, my Norwegian language pack was for 1.55e. And there were some files missing. I have copied them over, but still get the same. Cleaned cache, tried another browser.
    Any help would be appreciated.
    geir

  6. #6
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,417
    Plugin Contributions
    16

    Default Re: Trouble finding some text which need translation

    OK, so, your admin is using Norwegian. Can you copy/paste the contents of your YOUR_ADMIN/includes/languages/norwegian/customers.php file here? Just remember to wrap it with the code tags.
    You can do the same for the other files I listed above.
    Zen Cart Point of Sale? Sure: ZX POS - v2 released
    My site - Pro ZC Help | My portfolio | My plugins

  7. #7
    Join Date
    Apr 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: Trouble finding some text which need translation

    Here they come:
    customers.php
    [<?php
    /**
    * @package admin
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @Norwegian translation by Rune Rasmussen - 2006 - http://www.syntaxerror.no
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: customers.php 84 2012-02-16 17:42:27Z syntaxerror.no $
    */

    define('HEADING_TITLE', 'Kundar');

    define('TABLE_HEADING_ID', 'Kundenr. ');
    define('TABLE_HEADING_FIRSTNAME', 'Fornamn');
    define('TABLE_HEADING_LASTNAME', 'Etternamn');
    define('TABLE_HEADING_ACCOUNT_CREATED', 'Konto opprettet');
    define('TABLE_HEADING_LOGIN', 'Siste påloging');
    define('TABLE_HEADING_ACTION', 'Valg');
    define('TABLE_HEADING_PRICING_GROUP', 'Prisgruppe');
    define('TABLE_HEADING_AUTHORIZATION_APPROVAL', 'Godkjent');
    define('TABLE_HEADING_GV_AMOUNT', 'Gavekort-balanse');

    define('TEXT_DATE_ACCOUNT_CREATED', 'Konto opprettet:');
    define('TEXT_DATE_ACCOUNT_LAST_MODIFIED', 'Sist endret:');
    define('TEXT_INFO_DATE_LAST_LOGON', 'Siste pålogging:');
    define('TEXT_INFO_NUMBER_OF_LOGONS', 'Antall pålogginger:');
    define('TEXT_INFO_COUNTRY', 'Land:');
    define('TEXT_INFO_NUMBER_OF_REVIEWS', 'Antall omtaler:');
    define('TEXT_DELETE_INTRO', 'Er du sikker på at du ønsker å slette denne kunden?');
    define('TEXT_DELETE_REVIEWS', 'Slett %s omtaler(r)');
    define('TEXT_INFO_HEADING_DELETE_CUSTOMER', 'Slett kunde');
    define('TYPE_BELOW', 'Fyll inn nedenfor');
    define('PLEASE_SELECT', 'Velg en');
    define('TEXT_INFO_NUMBER_OF_ORDERS', 'Antall ordrer:');
    define('TEXT_INFO_LAST_ORDER','Siste ordre:');
    define('TEXT_INFO_ORDERS_TOTAL', 'Totalt:');
    define('CUSTOMERS_REFERRAL', 'Kundehenvisning <br />Første rabattkode');
    define('TEXT_INFO_GV_AMOUNT', 'Gavekort-balanse');

    define('ENTRY_NONE', 'Ingen');

    define('TABLE_HEADING_COMPANY','Firma');

    define('TEXT_INFO_HEADING_RESET_CUSTOMER_PASSWORD', 'Reset Customer Password');
    define('TEXT_PWDRESET_INTRO', 'To reset the password for this customer, enter a new password, and confirm it, below. The new password must conform to the normal password rules imposed on customers.');
    define('TEXT_CUST_NEW_PASSWORD', 'New Password:');
    define('TEXT_CUST_CONFIRM_PASSWORD', 'Confirm Password:');
    define('ERROR_PWD_TOO_SHORT', 'Error: password is shorter than the number of characters configured for this store.');
    define('SUCCESS_PASSWORD_UPDATED', 'Password updated.');

    define('EMAIL_CUSTOMER_PWD_CHANGE_MESSAGE', 'Your password has been changed by the store administrator. Your new password is: ');
    define('EMAIL_CUSTOMER_PWD_CHANGE_SUBJECT', 'Account password reset');
    define('EMAIL_CUSTOMER_PWD_CHANGE_MESSAGE_FOR_ADMIN', 'You have reset the password for a customer: ' . "\n" . '%s' . "\n\n" . 'Administrator ID: %s');

    define('CUSTOMERS_AUTHORIZATION', 'Kundestatus');
    define('CUSTOMERS_AUTHORIZATION_0', 'Godkjent');
    define('CUSTOMERS_AUTHORIZATION_1', 'Venter godkjenning - må bli godkjent for å navigere');
    define('CUSTOMERS_AUTHORIZATION_2', 'Venter godkjenning - kan navigere, men ingen priser');
    define('CUSTOMERS_AUTHORIZATION_3', 'Venter godkjenning - kan navigere med priser, men ikke kjøpe');
    define('CUSTOMERS_AUTHORIZATION_4', 'Utestengt - Har ikke lov å logge inn i butikken');
    define('ERROR_CUSTOMER_APPROVAL_CORRECTION1', 'Advarsel: Butikken er satt opp for godkjenning med \'Ingen navigering\'. Kunde er satt til \'Venter godkjenning - ingen navigering\'');
    define('ERROR_CUSTOMER_APPROVAL_CORRECTION2', 'Advarsel: Butikken er satt opp for godkjenning med \'Navigering uten priser\'. Kunde er satt til \'Venter godkjenning - Navigering uten priser\'');

    define('EMAIL_CUSTOMER_STATUS_CHANGE_MESSAGE', 'Din kundestatus har blitt oppdatert. Takk for at du handler med oss.');
    define('EMAIL_CUSTOMER_STATUS_CHANGE_SUBJECT', 'Kundestatus oppdatert');

    define('ADDRESS_BOOK_TITLE', 'Adressebok-oppføringer');
    define('PRIMARY_ADDRESS', '(forvalgt adresse)');
    define('TEXT_MAXIMUM_ENTRIES', '<span class="coming"><strong>Merk:</strong></span> Maksimum %s adressebok-oppføringer er tillatt.');
    define('TEXT_INFO_ADDRESS_BOOK_COUNT', ' | 1 av ');
    define('TEXT_INFO_ADDRESS_BOOK_COUNT_SINGLE', '');

    define('EMP_BUTTON_PLACEORDER_ALT', 'Place an order for this customer');
    define('EMP_BUTTON_PLACEORDER', 'Place Order');]

    ask_a_question.php:
    [<?php
    /**
    * @copyright Copyright 2003-2020 Zen Cart Development Team
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: DrByte 2020 Jun 07 Modified in v1.5.7 $
    */
    define('NAVBAR_TITLE', 'Still eit spørsmål');

    define('HEADING_TITLE', 'Still eit spørsmål om ');
    define('FORM_TITLE', 'Kva er spørsmålet ditt?');

    define('TEXT_SUCCESS', 'Spørsmålet ditt vart sendtt.');
    define('EMAIL_SUBJECT', 'Spørsmål til ' . STORE_NAME);

    define('ENTRY_NAME', 'Namnet ditt:');
    define('ENTRY_EMAIL', 'Epost:');
    define('ENTRY_TELEPHONE', 'Telefon:');
    define('ENTRY_ENQUIRY', 'Melding:');
    define('TEXT_PRODUCT_NAME', 'Boktittel: ');

    define('SEND_TO_TEXT','Send epost til:');
    define('ENTRY_EMAIL_NAME_CHECK_ERROR','Sorry, is your name correct? Our system requires a minimum of ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters. Please try again.');
    define('ENTRY_EMAIL_CONTENT_CHECK_ERROR','Did you forget your message? We would like to hear from you. You can type your comments in the text area below.');

    define('NOT_LOGGED_IN_TEXT', 'Ikkje innlogga');]

    email_extras.php
    [<?php
    /**
    * @package languageDefines
    * @copyright Copyright 2003-2007 Zen Cart Development Team
    * @copyright Portions Copyright 2003 osCommerce
    * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    * @version $Id: email_extras.php 93 2012-02-16 23:01:05Z syntaxerror.no $
    */
    define ('EMAIL_LOGO_FILENAME', 'header.jpg'); //-File is present in /email folder
    define ('EMAIL_LOGO_WIDTH', '550');
    define ('EMAIL_LOGO_HEIGHT', '110');
    define ('EMAIL_LOGO_ALT_TITLE_TEXT', 'Zen Cart! The Art of E-commerce');

    // -----
    // If you want to include some extra information in each email's header information (like perhaps the store address and/or phone number),
    // set this value to contain the full HTML content to be copied, e.g. '<div id="extra-stuff">Extra stuff for header</div>'.
    //
    define ('EMAIL_EXTRA_HEADER_INFO', '');

    // office use only
    define('OFFICE_FROM','<strong>Frå:</strong>');
    define('OFFICE_EMAIL','<strong>E-post:</strong>');

    define('OFFICE_USE','<strong>Berre til kontorbruk:</strong>');
    define('OFFICE_LOGIN_NAME','<strong>Brukarnamn:</strong>');
    define('OFFICE_LOGIN_EMAIL','<strong>Brukar sin e-post:</strong>');
    define('OFFICE_LOGIN_PHONE','<strong>Telefon:</strong>');
    define('OFFICE_LOGIN_FAX','<strong>Faks:</strong>');
    define('OFFICE_IP_ADDRESS','<strong>IP-adresse:</strong>');
    define('OFFICE_HOST_ADDRESS','<strong>Vertsadresse:</strong>');
    define('OFFICE_DATE_TIME','<strong>Dato og klokkeslett:</strong>');
    if (!defined('OFFICE_IP_TO_HOST_ADDRESS')) define('OFFICE_IP_TO_HOST_ADDRESS', 'Av');

    define('EMAIL_TEXT_TELEPHONE', 'Telefon: ');

    // email disclaimer
    define('EMAIL_DISCLAIMER', 'Denne e-posten vart send til deg fordi nokon har nytta ei teneste hjå oss og oppgjeve denne e-postadressa. Dersom du meiner at du ikkje skulle ha motteke denne e-posten, ver venleg og send melding til oss på %s:');
    define('EMAIL_SPAM_DISCLAIMER','');
    // Define a message you'd like to add to an order confirmation email
    define('EMAIL_ORDER_MESSAGE','');
    define('EMAIL_FOOTER_COPYRIGHT','Kopirett ' . STORE_OWNER . '.');
    define('TEXT_UNSUBSCRIBE', "\n\nFor å melda deg av framtidige nyheitsbrev og tilbod kan du klikka på fylgjande lenkje: \n");

    // email advisory for all emails customer generate - tell-a-friend and GV send
    define('EMAIL_ADVISORY', '-----' . "\n" . '<strong>VIKTIG:</strong> For å hindra misbruk av tenestene våre, vert alle e-postane som vert sende frå nettsidene våre loggførte og innhaldet vert lagra. Dersom du meiner at du ved ein feil har motteke denne e-posten, ver venleg og send melding til oss på ' . STORE_OWNER_EMAIL_ADDRESS . "\n\n");

    // email advisory included warning for all emails customer generate - tell-a-friend and GV send
    define('EMAIL_ADVISORY_INCLUDED_WARNING', '<strong>Denne meldinga vert lagd ved alle e-postar sende frå denne nettsida:</strong>');


    // Admin additional email subjects
    define('SEND_EXTRA_CREATE_ACCOUNT_EMAILS_TO_SUBJECT','[Opprett konto]');
    define('SEND_EXTRA_GV_CUSTOMER_EMAILS_TO_SUBJECT','[Kopi av gåvekort sendt frå kunde til kunde]');
    define('SEND_EXTRA_NEW_ORDERS_EMAILS_TO_SUBJECT','[Ny ordre]');

    // Low Stock Emails
    define('EMAIL_TEXT_SUBJECT_LOWSTOCK','Advarsel: Låg lagerbehaldning');
    define('SEND_EXTRA_LOW_STOCK_EMAIL_TITLE','Rapport - Låg lagerbehaldning: ');
    ]

  8. #8
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,417
    Plugin Contributions
    16

    Default Re: Trouble finding some text which need translation

    OK, you forgot to wrap the contents with code tags, but never mind.

    I'll focus on ask_a_question now. Your template doesn't seem to be using that file - are you sure the language settings are pointing to the correct folder? For example, your site shows "Namn" and the definition is "Namnet ditt". See if your settings are correct...
    Zen Cart Point of Sale? Sure: ZX POS - v2 released
    My site - Pro ZC Help | My portfolio | My plugins

  9. #9
    Join Date
    Apr 2009
    Posts
    26
    Plugin Contributions
    0

    Default Re: Trouble finding some text which need translation

    Excuse my lack of knowledge. But where do I check that my language settings are pointing to the correct folder? I suspect this might be a clue to other mysterious behaviour.
    Geir

  10. #10
    Join Date
    Oct 2008
    Location
    Croatia
    Posts
    1,417
    Plugin Contributions
    16

    Default Re: Trouble finding some text which need translation

    Admin->Localization->Languages->Norwegian and then check if it's pointing to the correct folder. Keep in mind case (probably) matters so Norwegian is not the same as norwegian.
    Zen Cart Point of Sale? Sure: ZX POS - v2 released
    My site - Pro ZC Help | My portfolio | My plugins

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need help finding text
    By kobra in forum General Questions
    Replies: 16
    Last Post: 21 May 2013, 02:10 PM
  2. Need help finding linked text
    By GRH1 in forum General Questions
    Replies: 1
    Last Post: 8 Nov 2009, 01:53 PM
  3. Trouble finding the includes/ folder...
    By brownberry in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 12 Apr 2009, 03:18 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR