Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9097483
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T00:07:43+00:00 2026-06-17T00:07:43+00:00

That’s my first question here, normally I provide answers ;-) Well, I’m looking for

  • 0

That’s my first question here, normally I provide answers 😉

Well, I’m looking for a script to extract some specific strings set into system.xml, layout xml files or similar they are used by Magento to translate them. Example: labels, menu item or else.

I have a script to extract them from php and phtml files thanks to gettext and convert them to a Portable Object file, then, I use the PO file to translate the strings thanks to OmegaT Software and finally I have also a PHP CLI script to convert the translated files from PO to CSV files.

Magento translates these xml files by using the module and the element information provided thanks to the attribute "translate='element_to_translate'" and "module='mymodule'" placed in an element (block or action for example) internally via an helper.

Here an example of xml code that I want to extract to allow me to translate it. Here I would like to translate the value of the element “label” thanks to the module “sales”, as you see below the attributes in the XML code could be helpful to extract this information:

<customer_account>
        <reference name="customer_account_navigation" >
            <action method="addLink" translate="label" module="sales"><name>billing_agreements</name><path>sales/billing_agreement/</path><label>Billing Agreements</label></action>

or an other example:

<block type="customer/account_navigation" name="customer_account_navigation" before="-" template="customer/account/navigation.phtml">
                <action method="addLink" translate="label" module="customer"><name>account</name><path>customer/account/</path><label>Account Dashboard</label></action>
                <action method="addLink" translate="label" module="customer"><name>account_edit</name><path>customer/account/edit/</path><label>Account Information</label></action>
                <action method="addLink" translate="label" module="customer"><name>address_book</name><path>customer/address/</path><label>Address Book</label></action>
            </block>
        </reference>
</customer_account>

So if someone has a script which allows to extract them it will be great. Honestly I didn’t have the time to create such a script because I used already lots of time to create the whole process for the translation which stay complicated. But if someone did already the job, it will be great to share it here.
However if people search the script to do the conversion from CSV to PO and reverse, I can help although it is fundable on the web. I just made some cosmetic changes compared to the original version.

Thanks for your feedbacks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T00:07:44+00:00Added an answer on June 17, 2026 at 12:07 am

    I have made a module for extracting strings to translate directly to csv files, in Magento format. If I recall correctly it handles the config and system xml’s, not sure about the layout though.
    Give it a try and feel free to improve it 🙂

    https://bitbucket.org/OSdave/languagecsv

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That is my first question around here, my name is Anna! My problem: My
That's my question, and here's my example code. HTML: <a class=fancybox rel=group href=img1.jpg> <img
That's my first question so I hope I write it correctly. I am trying
That title is presumably awfully worded. I have some PostgreSQL tables. There is a
that's part of my script: var count = $(.sliderItem).length; if (count < lp +
That's my Question =) MPMediaQuery *artistQuery = [MPMediaQuery artistsQuery]; NSArray *songsByArtist = [artistQuery collections];
That's how I'm new in here on the website so it would be super
That is my question. I'm just curious what the consensus is on limiting the
I have a small JavaScript validation script that validates inputs based on Regex. I
That is the question. Background: C# Params In C#, you can declare the last

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.