Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Jean Aurambault
    @aurambaj
    Have you actually tried the import command? it should not be sensitive to the order of the strings. Else you can have a look to tm-export and tm-import commands but I'd probably start with the regular import
    dusty-82
    @dusty-82
    Import works when id and content doesn't change. If ID change the target is empty. I tried to copy the repo to another one, using EXACT parameter, but databases are too big (800.000 entries) and the application crashes.
    Now I try to import the db in small pieces using the push command, the first import was ok, but the second overwrite it. Is there a parameter to concat entries instead of overwrite?
    How many CPUs and RAM do you recommend to manage big repos? Thanks
    Jean Aurambault
    @aurambaj
    Is it 800000 source strings or that number includes translations? For push there is an option --push-type NO_DELETE that can be used but you have to have multiple asset(files) if the file has the same name it will override it. Can you share the error you get when trying to copy?
    FYI I'm currently rewriting the backend to scale better but that will take time
    dusty-82
    @dusty-82
    I have 2 repo with 800.000 source strings.
    If I launch the push command, after about 2 hours, I received this warning:
    [Timer-0] c.m.v.a.ThreadPoolAsynchronousRunner : com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@58aa04f3 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
    Java process uses 200% of CPU. I waited 4 hours but anything change.
    Jean Aurambault
    @aurambaj
    I see, do you mind sharing your use case in PM if you prefer?
    i've never though to test for that much ... but I can have a look with the new implementation :D
    dusty-82
    @dusty-82
    How can i contact you? if you want i can send my json file
    namdh-1522
    @namdh-1522
    /notify-all
    Hi all. I use import to import localized files, but then when I pull the translated file, it showed error
    Localizing: string_ja-JP.properties
    - Processing locale: en-US
    Asset with path [string_ja-JP.properties] was not found in repo [Moneclicks]
    Could you guys help me. Thanks in advance!
    Jean Aurambault
    @aurambaj
    have you run mojito push before? do you use a specific file type?
    Jean Aurambault
    @aurambaj
    @namdh-1522 could you share the exact commands you've run?
    namdh-1522
    @namdh-1522
    @aurambaj Thank you for your support, It was fixed after I remove the unnecessary file out of directory that contains source assets to be localized.
    Freek Van der Wand
    @fr33k4t3k_twitter

    hey guys, I'm new to mojito and I'm currently trying to import my existing translations (structured JSON) named 'de-DE.json' and 'en-GB.json', but I don't get my head around how to import those...

     - Importing file: /home/user/work/tmp/ngxtranslate/src/assets/i18n/en_de-DE.json
    
    No asset for file [/home/user/work/tmp/ngxtranslate/src/assets/i18n/en.json] into repo [CT]

    I'm probably missing just a small flag or something, but I can't figure out:

    Freek Van der Wand
    @fr33k4t3k_twitter
    i18n git:(master) ✗ mojito import -r CT -ft JSON -sl en-GB.json
    Jean Aurambault
    @aurambaj
    @fr33k4t3k_twitter you need to first push your file before import and -sl shouldn't contain .json so something like: mojito push -r CT -ft JSON -sl en-GB
    then mojito import -r CT -ft JSON -sl en-GB
    Jean Aurambault
    @aurambaj
    also with -ft JSON the format of the is for the sourcee file{basename}.json and for the localized files are {basename}_{locale}.json so example.json and example_de-DE.json
    if you want no basename in the file name you'd have to use -ft JSON_NOBASENAME
    Freek Van der Wand
    @fr33k4t3k_twitter
    @aurambaj thanks, that helped ;)
    dusty-82
    @dusty-82
    Hi. How to make hsqldb file persistent?
    dusty-82
    @dusty-82
    Have you ever tried to add more than 100.000 rows? Using mysql, it needs 2 hours.
    hsqldb version is 2.1.0.0, which was released in 2011. Is there a mojito version with an actual (2.5) library?
    Mark Steele
    @marksteele
    is there any documentation anywhere on how the TM works?
    Jean Aurambault
    @aurambaj
    no. do you have any specific question?
    Mark Steele
    @marksteele
    I'd like to know how it works :) is it just exact string matches? levenshtein? something else?
    1 reply
    there's also some mention about integration with TMS services, any documentation about that?
    1 reply
    Mark Steele
    @marksteele
    is there a way to check how many untranslated strings there are for in a project? (eg: fail the build if there are untranslated strings)
    1 reply
    Mark Steele
    @marksteele
    is the current latest tag working with mysql? getting: mojito_1 | 2020-11-26 21:05:16.094 INFO 1 --- [ost-startStop-1] o.hibernate.tool.hbm2ddl.TableMetadata : HHH000126: Indexes: [i__users__username, fk__user__user__id, primary] mojito_1 | 2020-11-26 21:05:16.107 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : HHH000388: Unsuccessful: create index I__TM_TEXT_UNIT__NAME on tm_text_unit (name) mojito_1 | 2020-11-26 21:05:16.108 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : BLOB/TEXT column 'name' used in key specification without a key length mojito_1 | 2020-11-26 21:05:16.110 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : HHH000388: Unsuccessful: create index I__TM_TEXT_UNIT__PLURAL_FORM_OTHER on tm_text_unit (plural_form_other) mojito_1 | 2020-11-26 21:05:16.111 ERROR 1 --- [ost-startStop-1] org.hibernate.tool.hbm2ddl.SchemaUpdate : BLOB/TEXT column 'plural_form_other' used in key specification without a key length
    6 replies
    and also ngframework.security.web.access.intercept.FilterSecurityInterceptor@17a88f61] mojito_1 | 2020-11-26 21:05:24.911 INFO 1 --- [ main] o.s.jdbc.datasource.init.ScriptUtils : Executing SQL script from class path resource [db/hsql/data.sql] mojito_1 | 2020-11-26 21:05:24.968 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service Tomcat mojito_1 | 2020-11-26 21:05:24.998 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application startup failed mojito_1 | mojito_1 | org.springframework.jdbc.datasource.init.ScriptStatementFailedException: Failed to execute SQL script statement #1 of class path resource [db/hsql/data.sql]: insert into locale (id, bcp47_tag) values (157, 'af-ZA'); nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '157' for key 'PRIMARY'
    3 replies
    Mark Steele
    @marksteele
    trying to get version from master working, getting
    Field emailSender in com.box.l10n.mojito.service.sla.email.SlaCheckerEmailService required a bean of type 'org.springframework.mail.javamail.JavaMailSender' that could not be found.
    2 replies
    Mark Steele
    @marksteele
    on master, still can't get it working. having to dig through the code to find undocumented configs
    currently error I'm seeing is that the html templates aren't interpolating their variables
    1 reply
    <!DOCTYPE html>
    <html>
        <head lang="{{locale}}">
            <title>Mojito</title>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    
            <script type="text/javascript">
                APP_CONFIG = {{{appConfig}}};
                CSRF_TOKEN = '{{csrfToken}}';
            </script>
        </head>
    
        <body>
            <div id="app"></div>
            <script type="text/javascript" src="{{contextPath}}/js/app-f55a2fa8bdabd992f6a0.js"></script>
            <script type="text/javascript" src="{{contextPath}}/js/css-f55a2fa8bdabd992f6a0.js"></script>
        </body>
    
    </html>
    Mark Steele
    @marksteele
    spring.flyway.enabled=true
    spring.flyway.clean-disabled=true 
    l10n.flyway.clean=false
    spring.datasource.url=jdbc:mysql://${MOJITO_DB_HOST}:${MOJITO_DB_PORT}/${MOJITO_DB_NAME}?characterEncoding=UTF-8&useUnicode=true&useSSL=false
    spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
    spring.datasource.username=${MOJITO_DB_USERNAME}
    spring.datasource.password=${MOJITO_DB_PASSWORD}
    spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
    server.forward-headers-strategy=native
    l10n.org.quartz.jobStore.useProperties=true
    l10n.org.quartz.scheduler.instanceId=AUTO
    l10n.org.quartz.jobStore.isClustered=true
    l10n.org.quartz.threadPool.threadCount=10
    l10n.org.quartz.jobStore.class=org.quartz.impl.jdbcjobstore.JobStoreTX
    l10n.org.quartz.jobStore.driverDelegateClass=org.quartz.impl.jdbcjobstore.StdJDBCDelegate
    l10n.org.quartz.jobStore.dataSource=myDS
    l10n.org.quartz.dataSource.myDS.provider=hikaricp
    l10n.org.quartz.dataSource.myDS.driver=com.mysql.cj.jdbc.Driver
    l10n.org.quartz.dataSource.myDS.URL=jdbc:mysql://${MOJITO_DB_HOST}:${MOJITO_DB_PORT}/${MOJITO_DB_NAME}?characterEncoding=UTF-8&useUnicode=true
    l10n.org.quartz.dataSource.myDS.user=${MOJITO_DB_USERNAME}
    l10n.org.quartz.dataSource.myDS.password=${MOJITO_DB_PASSWORD}
    l10n.org.quartz.dataSource.myDS.maxConnections=12
    l10n.org.quartz.dataSource.myDS.validationQuery=select 1
    spring.security.oauth2.client.registration.google.client-id="${MOJITO_GOOGLE_CLIENT_ID}"
    spring.security.oauth2.client.registration.google.client-secret="${MOJITO_GOOGLE_CLIENT_SECRET}"
    #l10n.security.authenticationType=DATABASE,OAUTH2,HEADER
    l10n.security.authenticationType=DATABASE,HEADER
    info.build.version=1.0
    spring.profiles.include=disablescheduling
    spring.mail.host=localhost
    spring.jpa.hibernate.use-new-id-generator-mappings=false
    spring.jpa.properties.org.hibernate.envers.audit_strategy=org.hibernate.envers.strategy.ValidityAuditStrategy
    spring.jpa.properties.org.hibernate.envers.track_entities_changed_in_revision=true
    spring.session.store-type=none
    spring.session.jdbc.table-name=SPRING_SESSION_V2
    #l10n.security.unauth-redirect-to=/login/oauth2/authorization/code/google
    that's my config
    Mark Steele
    @marksteele
    I'm trying to dockerize the app. Is there a known good working docker container somewhere based off latest tag I could use instead?
    1 reply
    my dockerfile:
    FROM amazoncorretto:8
    
    RUN mkdir -p /opt/mojito && \
      mkdir -p /usr/local/etc/mojito/webapp
    
    COPY webapp/application.properties /usr/local/etc/mojito/webapp/
    COPY mojito-webapp-0.111-SNAPSHOT-exec.jar /opt/mojito/
    WORKDIR /opt/mojito
    EXPOSE 8080
    
    #CMD ["sleep", "infinity"]
    CMD ["java", "-Dspring.config.location=/usr/local/etc/mojito/webapp/", "-jar", "mojito-webapp-0.111-SNAPSHOT-exec.jar"]
    Mark Steele
    @marksteele
    I've tried using the tagged release, it doesn't work. It's missing mysql driver, db migrations fail due to foreign key constraint failures with mysql
    1 reply
    Jean Aurambault
    @aurambaj
    I'd have to run some more test because ATM moment I work either with master on dev branches. I haven't tried the latest tagged in a while. I have some doc with docker compose here: https://github.com/box/mojito/tree/master/docker (last changes are 9 months old so might be out dated too). https://github.com/box/mojito/blob/master/docker/readme.md
    Mark Steele
    @marksteele
    went back to trying to get 0.110 to work, but now it's failing on not finding quartz tables
    2 replies
    ... tabarnak
    pardon my quebecois ;)
    Jean Aurambault
    @aurambaj
    Since you're technical, I recommend building of master, it has spring boot 2 which as a lot of great stuff for monitoring, etc. I need to look at this doc sync issue and/or do a new release
    Jean Aurambault
    @aurambaj
    where are you planning to deploy it to?
    Mark Steele
    @marksteele
    was planning to run it inside a k8s cluster
    finally got the v0.110 to work, so will probably stick with that for a little bit
    I'd definitely like to get it working on the newer code, just don't have time to dig through the code to find the missing bits/bobs. If you've got a working sample config I don't mind giving it another go
    Jean Aurambault
    @aurambaj
    the configuration on mojito.global: https://www.mojito.global//docs/guides/install/ are the ones that should work well with the master branch
    Mark Steele
    @marksteele
    I essentially used those settings (I pasted the config above), and the html templates don't appear to be interpolating their values
    on master