Code Monkey home page Code Monkey logo

Comments (24)

przemyslawlis avatar przemyslawlis commented on July 19, 2024

Hi johnfelipe!
Great to hear that! You're very welcome to submit a pull request with spanish translation.
This guide should help you get started with translation: https://github.com/campsych/concerto-platform/wiki/Translating-Concerto-Platform .
Please let me know if you need any help.

from concerto-platform.

chrisgibbons avatar chrisgibbons commented on July 19, 2024

Hey Felipe,

There has been interest to develop Concerto in Spanish with Barcelona
researchers, would you like me to make an introduction so that you can work
with them?

Best wishes,
Chris

Chris Gibbons PhD. CPsychol.

NIHR Post-Doctoral Research Fellow | Primary Care Unit | Institute of
Public Health |

University of Cambridge School of Clinical Medicine | Fovie Site | CB2 0SR

Psychologist | The Psychometrics Centre| Judge Business School | University
of Cambridge |17 Mill Lane | CB2 1RX

Skype| drcjgibbons

Web | http://www.psychometrics.cam.ac.uk/about-us/directory/Chris_Gibbons
http://www.psychometrics.cam.ac.uk/about-us/directory/Chris_Gibbons

On Wed, Jul 13, 2016 at 4:27 PM, przemyslawlis [email protected]
wrote:

Hi johnfelipe!
Great to hear that! You're very welcome to submit a pull request with
spanish translation.
This guide should help you get started with translation:
https://github.com/campsych/concerto-platform/wiki/Translating-Concerto-Platform
.
Please let me know if you need any help.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#14 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AJtsrk1gGWCxYDML5mowfopPvaUP6-YUks5qVQPKgaJpZM4JLDa4
.

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

@chrisgibbons pls share me contact

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

i do this

sudo nano /var/www/concerto/src/Concerto/PanelBundle/Resources/translations/login.es_ES.yml

##
form:
  legend: Por favor ingrese sus credenciales
  legend.tooltip: Ingrese su usuario y contraseña
  field:
    login: Login
    login.tooltip: Por favor ingrese su ID de usuario
    password: Contraseña
    password.tooltip: Por favor entre su contraseña
  button.login: Log in

'Bad credentials.': ¡Usuario o contraseña incorrectos!
'User account is disabled.': Usuario está archivado!

##

next

cd /var/www/concerto

sudo php app/console debug:translation es_ES --only-missing

and show me this error:

[WARNING] No defined or extracted messages for locale "es_ES"

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

If you recently modified translation files and you want to run the command, please make sure you've cleared the cache.

php app/console cache:clear

It seems like you also need to explicitly enter name of the bundle where you want to debug translations.

php app/console debug:translation pt_BR --only-missing ConcertoPanelBundle
php app/console debug:translation pt_BR --only-missing ConcertoTestBundle

Translation guide has been updated with above.

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

This is log after that commands

https://gist.github.com/johnfelipe/bd86160b7789e86cf3d0bb3d5d258d11

And is not translated to spanish

notranslated

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

Looks fine. From what I see you've just added login.es_ES.yml so it tells you that you have many translated strings missing.

What you need to do is: add rest of the translation files for en_ES and submit pull request.
If everything will be ok with translation, it's going to be made available as a new language in Concerto Platform

Please let me know if something is unclear.

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

what is command for do pull request?

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

This should get you started with PR: https://help.github.com/articles/using-pull-requests/

If you don't feel comfortable doing it, you can alternatively send me a zipped package with all translation files in it and I can take care of the rest.

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

but u cant share me commands for to it from myself at begin
Later i do PR with all correct translation, my email is [email protected]

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

Here's GIT pull request command documentation: https://git-scm.com/docs/git-request-pull
If this is your first time with GIT I suggest you try to do it through GUI (e.g. GitHub's).

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

@przemyslawlis i know how create or send PR, but my question is how test only login.es_ES.yml, do u get me?

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

If you want to change your app locale and see the effect of your translation files live, inside app, you can do it by:

  1. Adding new locale to /app/config/config.yml

    parameters:
    version: 5.0.beta.2.120
    available_locales:
    en_GB: english
    pl_PL: polski
    en_ES: español
    (...)
  2. Clear cache

    php app/console cache:clear
  3. Launch Concerto Platform panel
  4. Change locale from within app by selecting new languange from drop-down button in top-right corner

Fallback language is English. This means that whatever missing translation you have will be displayed in English.

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

Is not working

http://181.136.243.82/admin

is test server, admin, admin is credentials for now

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

This is my installation steps:

https://docs.google.com/document/d/1yRty3f95y1zPwAJBw06oXQ9xsZqpvP0QByE5B0CtC98/edit?usp=sharing

Pls help me to solve translation issue and this issue #18 to
Stay alert

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

Sorry, I forgot to add that you should clear production cache.

php app/console cache:clear --env=prod

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

with that command concerto is down:

felipe@felipeurrego:/var/www/concerto$ sudo php app/console cache:clear
Clearing the cache for the dev environment with debug true
felipe@felipeurrego:/var/www/concerto$ sudo php app/console cache:clear --env=prod
Clearing the cache for the prod environment with debug false

concertodown

Thisi is my phpinfo

http://181.136.243.82/info.php

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

Beside clearing the cache this command also recreates it. If you performed this command as root, then most probably your cache is not readable by your web user which gives us 500 error.

  1. Delete whole app/cache/prod directory with all it's content.
  2. Refresh web page

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

Then, give me correct command steps, because my installation process is with sudo in multiples parts, because EACCESS error show me several times, please take a look:

https://docs.google.com/document/d/1yRty3f95y1zPwAJBw06oXQ9xsZqpvP0QByE5B0CtC98/edit?usp=sharing

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

https://github.com/campsych/concerto-platform/wiki/Linux-installation - here you can see which commands requires sudo.

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

i will update installation and put all in /home/felipe directory for not problems with sudo

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024
felipe@felipeurrego:~/concerto$ php app/console cache:clear --env=prod


  [RuntimeException]
  Unable to write in the "/home/felipe/concerto/app/cache/prod" directory


cache:clear [--no-warmup] [--no-optional-warmers]

www-data

felipe@felipeurrego:~/concerto$ ls -l /home/felipe/concerto/app/cache
total 8
drwxrwxr-x 9 felipe   felipe   4096 Jul 16 19:34 dev
drwxr-xr-x 8 www-data www-data 4096 Jul 16 19:32 prod

from concerto-platform.

johnfelipe avatar johnfelipe commented on July 19, 2024

I delete it with sudo rm -rf /home/felipe/concerto/app/cache/prod/

And have a change but how can put flag of colombia:

spanishflag

But login page still English

from concerto-platform.

przemyslawlis avatar przemyslawlis commented on July 19, 2024

Don't trouble yourself with the flag. I'll add it to your PR when you're done with translation as it needs to be consistent with rest of the flags.

Currently locale setting is sticky across session. When logging out session gets removed and fallback locale is used (en_GB). I'll be probably adding 'login form' locale switching soon.

from concerto-platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.