"Click to Pay" not listed for translate

Discussion in 'Styling and Customization Questions' started by shahidi, Jun 19, 2015.

  1. shahidi

    shahidi Active Member

    Joined:
    Aug 29, 2011
    Messages:
    562
    Likes Received:
    41
    Hello
    there is a phrase named "Click to Pay" but we can't find this phrase or add to list for tranlsate ;
    would you please describe about it ?
    Thank you
     
    #1
  2. CE-Matt

    CE-Matt Administrator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    1,571
    Likes Received:
    274
    Can you screenshot where you see this? I'm not seeing this phrase anywhere in our source code.
     
    #2
  3. shahidi

    shahidi Active Member

    Joined:
    Aug 29, 2011
    Messages:
    562
    Likes Received:
    41
    it's in invoice template
    http://pasteboard.co/1m875bbz.png

    links to our payment gateway
    index.php?fuse=billing&action=paymentforwarder&invoice=11993&t=fe0b3ab723d20defc58c5d1571a2dcf7
     
    #3
  4. shahidi

    shahidi Active Member

    Joined:
    Aug 29, 2011
    Messages:
    562
    Likes Received:
    41
    Hello
    Is there any update for this ?
    Thank you
     
    #4
  5. shahidi

    shahidi Active Member

    Joined:
    Aug 29, 2011
    Messages:
    562
    Likes Received:
    41
  6. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    http://pasteboard.co/1YMXUQrP.png
    This one is available to be translated in files like \language\javascript-en.po and then compiled to \language\javascript-en.mo (this one is the English file, but you need to add the translation in your respective language file)




    http://pasteboard.co/1YMFNTGv.png
    This one is available to be changed in \templates\common\views\support\ticketpublic\ticket.phtml

    line 6
    <div class="meta-ticket-id">Ticket #<?php echo $this->metadata['id'];?></div>
    replace with:
    <div class="meta-ticket-id"><?php echo $this->user->lang("Ticket"); ?> #<?php echo $this->metadata['id'];?></div>

    line 7
    <h1 class="pull-left"><?php echo $this->escape($this->metadata['subject']) ?></h1><span class="pull-right label ce-label ce-label-large <?php echo ($this->metadata['status_system'] == -1) ? "label-important" : "label-info";?> label-ticket-status"><?php echo $this->metadata['statusName'];?></span>
    replace with:
    <h1 class="pull-left"><?php echo $this->escape($this->metadata['subject']) ?></h1><span class="pull-right label ce-label ce-label-large <?php echo ($this->metadata['status_system'] == -1) ? "label-important" : "label-info";?> label-ticket-status"><?php echo $this->user->lang($this->metadata['statusName']);?></span>

    line 11
    <li class="active"><a href="javascript:void(0)" onclick="ticketview.filterBy(this,'messages')">Messages</a></li>
    replace with:
    <li class="active"><a href="javascript:void(0)" onclick="ticketview.filterBy(this,'messages')"><?php echo $this->user->lang("Messages"); ?></a></li>

    line 12
    <li><a href="javascript:void(0)" onclick="ticketview.filterBy(this,'customfields')">Custom Fields</a></li>
    replace with:
    <li><a href="javascript:void(0)" onclick="ticketview.filterBy(this,'customfields')"><?php echo $this->user->lang("Custom Fields"); ?></a></li>




    http://pasteboard.co/1YMHQ5g2.png
    This one is available to be changed in \templates\common\views\support\ticketpublic\alltickets.phtml

    line24
    <span class="ticket-second-line">Date created: <?php echo $ticket['datesubmitted'];?></span>
    replace with:
    <span class="ticket-second-line"><?php echo $this->user->lang("Date Created").': '.$ticket['datesubmitted'];?></span>
     
    Last edited: Jul 17, 2015
    #6
  7. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    http://pasteboard.co/1YML1EQW.png

    This one can not be translated. If you have access, you can modify the file \javascript\richhtml\rich.grid.js

    line 1161
    meta = "Displaying items: 0 - 0 of 0";
    replace with:
    meta = lang("Displaying items")+": 0 - 0 "+lang("of")+" 0";

    line 1163
    meta = "Displaying items: " + (self.pagingData.start + 1)+" - "+(self.pagingData.start + self.pagingData.items)+" of "+self.pagingData.totalItems;
    replace with:
    meta = lang("Displaying items")+": " + (self.pagingData.start + 1)+" - "+(self.pagingData.start + self.pagingData.items)+" "+lang("of")+" "+self.pagingData.totalItems;



    Also will need to manually add those translations in the language files. I am adding this for a next release.
     
    Last edited: Jul 17, 2015
    #7
  8. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    http://pasteboard.co/1YMNItCP.png
    This one is available to be translated in files like \language\core-en.po and then compiled to \language\core-en.mo (this one is the English file, but you need to add the translation in your respective language file)
     
    #8
  9. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    http://pasteboard.co/1YMQh0It.png
    This one is available to be translated in files like \language\javascript-en.po and then compiled to \language\javascript-en.mo (this one is the English file, but you need to add the translation in your respective language file)
     
    #9
  10. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    http://pasteboard.co/1YMSfYPX.png
    Item and Items are available to be translated in files like \language\javascript-en.po and then compiled to \language\javascript-en.mo (this one is the English file, but you need to add the translation in your respective language file)

    VAT should be the name you have set to the tax rule. Edit your tax rule in /admin/index.php?fuse=admin&controller=settings&view=taxes&settings=billing and change the Name.
     
    #10
  11. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    http://pasteboard.co/1YMVCsmU.png
    Most of these translations are available to be translated in files like \language\javascript-en.po and then compiled to \language\javascript-en.mo (this one is the English file, but you need to add the translation in your respective language file)

    Translate:

    Searching domain availability ...

    Good news
    is available to transfer
    is not available to transfer
    is already registered
    is available to register

    Available Domains

    year
    years
    % for %

    Add to cart






    The error about OnlineNIC is a bit more complex to translate.
    You can do your own changes in \plugins\registrars\onlinenic\PluginOnlinenic.php
    There are different strings there to translate.
    In the particular case of the screenshot, you will need to translate:

    line 99
    if($this->getError($return, 'Lookup') != '') {
    replace with:
    if($this->getError($return, 'YOUR TRANSLATION GOES HERE') != '') {

    line 67
    $errorMessage = "OnlineNIC ".$request." Failed: ".$return['result'][0]['#']['msg'][0]['#'];
    replace with:
    $errorMessage = "OnlineNIC ".$request." YOUR TRANSLATION GOES HERE: ".$return['result'][0]['#']['msg'][0]['#'];

    There are many other strings to translate there for OnlineNIC.
     
    #11
  12. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    http://pasteboard.co/1YMZLMDo.png
    This one is available to be translated in files like \language\core-en.po and then compiled to \language\core-en.mo (this one is the English file, but you need to add the translation in your respective language file)
     
    #12
  13. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    THAT IS ALL
     
    #13
  14. CE-Juan

    CE-Juan Moderator Staff Member

    Joined:
    Aug 27, 2011
    Messages:
    625
    Likes Received:
    70
    a last one:

    Click here to pay

    This one is available to be translated in files like \language\core-en.po and then compiled to \language\core-en.mo (this one is the English file, but you need to add the translation in your respective language file)
     
    #14

Share This Page