by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Dragos Varovici
    @dragosv
    But I want to have that when translations are passed
    The reason is translations are wrong
    Also found tm-import and tm-export, but want to use just import
    Jean Aurambault
    @aurambaj
    oh, i didn't get the original question. Yeah I think the simpler would be to add a param to the import CLI
    Dragos Varovici
    @dragosv
    thank you for your suggestion @aurambaj
    Marco Vito Moscaritolo
    @mavimo

    Hey all, weareusing Mojito from ~1y, today when I try to push I received:

    [..EDITED..]
    
    Running, task id: 84384
    Asset content has not changed (84384) Done
    
    Unexpected error, see logs for more information

    Looking into logs I see:

    2019-03-18 22:17:26.014 ERROR 1 --- [_MisfireHandler] o.s.s.quartz.LocalDataSourceJobStore     : MisfireHandler: Error handling misfires: Couldn't retrieve trigger: No record found for selection of Trigger with key: 'DYNAMIC.repositoryStatisticJob_15' and statement: SELECT * FROM QRTZ_SIMPLE_TRIGGERS WHERE SCHED_NAME = 'scheduler' AND TRIGGER_NAME = ? AND TRIGGER_GROUP = ?

    Anyone have can help me tobetter understand what's wrong?

    Jean Aurambault
    @aurambaj
    @mavimo did you recently update? Do you have configuration for quartz like shown here: http://www.mojito.global/docs/guides/install/#mysql or still running without it? Also you may want to look for another error in the log because I don't think that error would lead to the push failing
    Stephan H. Wissel
    @Stwissel
    N00b question: can I run mojito on a cloud platform like Heroku?
    Jean Aurambault
    @aurambaj
    I'm not familiar with Heroku but I would expect it to be relatively easy to do. I've been running it on AWS (ec2+rds). The server can be run as a standalone jar, passing config (especially credentials) in a clean way might be the part that takes a big more time. Else the most sensible part is to setup/manage the mysql server.
    Stephan H. Wissel
    @Stwissel
    Would environment parameters do?
    Jean Aurambault
    @aurambaj
    yes that's one way with spring boot. The doc is pretty extensive on the subject: https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html
    last I've done use SPRING_APPLICATION_JSON to pass all the conf as a JSON object instead of having multiple environment parameters
    Victor Ouyang
    @Victor515
    Hey all, our team recently started to use mojito, and we want to import some translation memory files (.xliff format) from other applications into mojito. I am wondering what is the correct way to do so?
    Suppose our TM files are in ~/Demo, and I have created one repo named "Demo", I have tried to run
    mojito import -r Demo or
    mojito tm-import -r Demo, but none of them worked.
    Any advice what is the correct command to run?
    Jean Aurambault
    @aurambaj

    Hi @Victor515 . The import command is the best way to bootstrap repository from already localized files (https://www.mojito.global//docs/guides/import-localized-files/).

    Assuming you have XLIFF like here: https://www.mojito.global//docs/refs/mojito-file-formats/#xliff-example, you can do:

    mojito repo-create -n xliffImport -l es-ES 
    mojito push -r xliffImport 
    mojito import -r xliffImport

    The tm-import is supposed to be used with files that are generated using tm-export command (mostly use to do project maintenance). There is little configuration that can be done and there isn't really an option to import standalone TMs.

    Victor Ouyang
    @Victor515
    Hey @aurambaj , we have got files imported. It turns out files should be named in the exact format like "xxx_es-ES.xliff" to be imported. Thanks for the help!
    Jean Aurambault
    @aurambaj
    @Victor515 Great! yes, the filename is important with source file: {basename}.xliff and localized file: {basename}_{locale}.xliff
    Victor Ouyang
    @Victor515
    Hey @aurambaj , we are trying to figure out how mojito push actually works. So when we do push in one directory, does mojito-cli actually push all files to the server, even if there are no changes? We saw one option named --git-diff, can you also explain the usage of it?
    Jean Aurambault
    @aurambaj
    yes, it pushes them to the server but the server process them only when they have changed or if the filter options are different. We added --git-diff but ended up not using it so far and I'm thinking about removing it. The idea is indeed to not send the file to the server if there are no change. You can also ignore part of the diff. it is useful when working with files generated by an extractor like gettext. Even if the strings are the same, the file will be different because of the created timestamp that changes. What I don't like about --git-diff is that it is dependent on the SCM and thinking more about it there are probably better way to do that.
    the original idea was to keep the CLI as simple as possible and let the server have the main logic. But if sending too many files to the server is a bottleneck the md5 check could be moved to the client, etc. That said it hasn't been an issue with our current usage
    Victor Ouyang
    @Victor515
    Gotcha, thanks for the clear explanation @aurambaj !
    Dragos Varovici
    @dragosv
    @aurambaj @jeeyi can you share an ETA for the next release? I have not seen any commit in a while
    Jee Yi
    @jeeyi
    @dragosv I just released v0.99: https://github.com/box/mojito/releases/tag/v0.99
    Dragos Varovici
    @dragosv
    Thank you @jeeyi
    decayron
    @decayron
    Hi, everyone. I'm trying to find system requirements for mojito. Can anyoone help, please?
    Jee Yi
    @jeeyi
    @decayron Have you checked out https://www.mojito.global//docs/guides/install/?
    decayron
    @decayron
    @jeeyi Sure. The question was about hardware requirements.
    Jean Aurambault
    @aurambaj
    @decayron we don't have specific hardware requirements. A small instance easily run on a laptop with mysql installed locally.
    Jean Aurambault
    @aurambaj
    @ganti to push back json localized files you need to use the "import" command: https://www.mojito.global//docs/guides/import-localized-files/, very similar options as the push/pull with some extra to choose the translation status
    Simon Gantenbein
    @ganti
    @aurambaj nice, thanks!
    Tobias Sch├Ąchtelin
    @tschach
    Hi there, came here to ask a question but solved it in the meantime. So I just want to say thanks for the software, it looks really cool!
    Jean Aurambault
    @aurambaj
    @tschach Thanks! Happy to help if you have any other question. Fell free to share how you use the tool or if you have any feedback.
    Janez Grudnik
    @JanezGrudnik_twitter
    Hi, there! I have a bit of a problem with running a mojito-webapp. I installed in on windows WSL, and configured it to use MySQL. It works perfect if I access it with "http://localhost:8080", but if i try to run it with computer name (HTTP://COMPNAME:8080) it fails to save changes to MySQL. It fails with an error: Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is java.lang.NullPointerException] with root cause.... Can anybody please suggest me what could be the culprit.
    Jean Aurambault
    @aurambaj
    Hi @JanezGrudnik_twitter ! Do you have specific configuration or just run with the base setup? could you share the whole stack track actually?
    Jean Aurambault
    @aurambaj
    (s/strack track/stacktrace/)
    Janez Grudnik
    @JanezGrudnik_twitter
    I uploaded spring.log to box, which shows the errors. https://app.box.com/s/9utq4wpsouqb5huu7az1p5sbgau6erwf
    Jean Aurambault
    @aurambaj
    Hi @JanezGrudnik_twitter I'm not familiar with that issue. I searched very quickly and found this: https://jira.spring.io/browse/SPR-14305?redirect=false that seems related.
    Is it a hard requirement to access by hostname in your case or you were just doing some testing?
    Janez Grudnik
    @JanezGrudnik_twitter
    Excelent! It works now. There should not be any special characters in hostname. Thank you very much!
    Jean Aurambault
    @aurambaj
    @JanezGrudnik_twitter No problem! Hope you enjoy Mojito!
    paul lauzon
    @paulongitlab_gitlab
    Hello. I am slowly learning about tools to help with localization. I am wondering if there is a list of mojito supported language pairs somewhere? Also wondering where the translation data comes from and if it is free to use for localizing commercial applications?
    Jean Aurambault
    @aurambaj
    @paulongitlab_gitlab Target languages can be seen here: https://github.com/box/mojito/blob/master/webapp/src/main/resources/db/hsql/data.sql. It is easy to add more if you need more. The source language is "en" in the database (it is not currently configurable) but practically you can put anything in the source string it doesn't really matter. The translation are usually done by human translators (based on the integration I know of) but it could be plug to a machine translation system too. Yes, you can use it to localize any applications.
    paul lauzon
    @paulongitlab_gitlab
    Thanks for the quick and detailed answer! :)
    Jean Aurambault
    @aurambaj
    You're welcome! btw the locale list is also in the doc in a more friendly format: https://www.mojito.global//docs/refs/mojito-locales/
    Jee Yi
    @jeeyi
    @/all Contributors need to re-sign CLA (Contributor License Agreement). Thank you!
    gehvaugeh
    @gehvaugeh
    hey there, can somebody help me with a kinda special problem ? I have some strings that I want to reference in other strings, is this possible with mojito ?
    for example i have a "default = Some Text" string and want another string "specialCase = default" to reference it
    Jean Aurambault
    @aurambaj
    @gehvaugeh that would need to be supported by your internationalization library. Mojito just stores the strings and manage the translations
    namdh-1522
    @namdh-1522
    @/all Hi everyone, I'd like to ask about this case: I had a repostiory and now I'd like to duplicate, my concerning is how can I keep all translated text. I try to use push but it only duplicate key without translated text
    Jee Yi
    @jeeyi
    @namdh-1522 Try the leveraging-copy-tm command. For example mojito leveraging-copy-tm -s <source repository> -t <target repository>
    namdh-1522
    @namdh-1522
    @jeeyi Let me try to use this. Many thanks!