2017 © Pedro Peláez
 

project translator-symfony-demo-onedrive-to-xliff

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

image

atico/translator-symfony-demo-onedrive-to-xliff

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

  • Tuesday, May 15, 2018
  • by samuelvi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Spreadsheet Translator Symfony Demo Application - Use Case

Introduction

Lightweight Symfony Demo Application for the Spreadsheet Translator functionallity. The demo brings a command that takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format., (*1)

Installation

composer create-project atico/translator-symfony-demo-onedrive-to-xliff, (*2)

This will install the demo application into your computer, (*3)

The source demo spreadsheet file is located at https://onedrive.live.com/embed?resid=AF6B7F4DC4426D56!114&authkey=%21AOntrGclPCi6zdA&em=2&cid=af6b7f4dc4426d56, (*4)

Instructions for sharing the One Drive file in readonly mode

Open your spreadsheet file in One Drive., (*5)

Go to Open => Share, (*6)

Click on the embed link, (*7)

Click on the generate button, (*8)

A screen with a Code for Insert|Javascript will appear, (*9)

The given textarea will contain an iframe element, copy the value for AUTHKEY, (*10)

From the address bar copy the values for RESID and CID, (*11)

Manually build the following url replacing the corresponding values:, (*12)

https://onedrive.live.com/embed?resid=RESID&authkey=AUTHKEY&em=2&cid=CID, (*13)

Running the demo

type in you terminal: bin/console atico:demo:translator --sheet-name=common, (*14)

This command will generate the translation files that will be stored into app/translations folder., (*15)

The generated files will be:, (*16)

  app
  |
  └───Resources
     │
     └──translations
         │  demo_common.es_ES.xliff   
         │  demo_common.en_GB.xliff
         │  demo_common.it_IT.xliff

demo_common.it_IT.yml will contain:, (*17)

  <?php
  return array (
    'homepage_title' => 'Traduttore di fogli di calcolo',
    'homepage_subtitle' => 'Traduttore per pagine Web con fogli di calcolo',
  );

Symfony Bundle: - Symfony Bundle, (*18)

Symfony Demos:, (*19)

Notes

composer.json will include the following Spreadsheet Translator dependencies:, (*20)

  "atico/spreadsheet-translator-core": "^1.0",
  "atico/spreadsheet-translator-symfony-bundle": "^1.0",
  "atico/spreadsheet-translator-provider-onedrive": "^1.0",
  "atico/spreadsheet-translator-reader-xlsx": "^1.0",
  "atico/spreadsheet-translator-exporter-xliff": "^1.0",

Requirements

  • PHP >=5.5.9
  • Symfony ~2.3|~3.0

Contributing

We welcome contributions to this project, including pull requests and issues (and discussions on existing issues)., (*21)

If you'd like to contribute code but aren't sure what, the issues list is a good place to start. If you're a first-time code contributor, you may find Github's guide to forking projects helpful., (*22)

All contributors (whether contributing code, involved in issue discussions, or involved in any other way) must abide by our code of conduct., (*23)

License

Spreadsheet Translator Symfony Bundle is licensed under the MIT License. See the LICENSE file for full details., (*24)

The Versions

15/05 2018

dev-master

9999999-dev

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

  Sources   Download

MIT

The Requires

 

15/05 2018

1.0.4

1.0.4.0

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

  Sources   Download

MIT

The Requires

 

15/05 2018

1.0.3

1.0.3.0

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

  Sources   Download

MIT

The Requires

 

15/05 2018

1.0.2

1.0.2.0

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

  Sources   Download

MIT

The Requires

 

15/05 2018

1.0.1

1.0.1.0

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

  Sources   Download

MIT

The Requires

 

15/05 2018

1.0.0

1.0.0.0

Spreadsheet Translator. Symfony Demo Application. Takes a Microsoft One Drive spreadhseet file and creates a translation file per locale in Xliff format

  Sources   Download

MIT

The Requires