Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. Gulp ist kein Hexenwerk - Auto translation

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Gulp ist kein Hexenwerk - Auto translation

    This topic has been deleted. Only users with topic management privileges can see it.
    • UncleSam
      UncleSam Developer last edited by

      @Bluefox Was ist deine Meinung zu Weblate? Wäre es möglich auf der ioBroker Server Infrastruktur noch einen Service für Weblate aufzusetzen? Weblate läuft am einfachsten als Docker Compose (zumindest aus meiner Sicht), falls du schon einen Server mit Docker hast, wäre das in kürzester Zeit aufgesetzt.

      1 Reply Last reply Reply Quote 0
      • Bluefox
        Bluefox last edited by

        Ich habe jetzt die Zugangsdaten für neuen Server an stabilostick Gegeben.

        1 Reply Last reply Reply Quote 1
        • jackblackson
          jackblackson last edited by

          Irgendwie steh ich auf dem Schlauch..ich hab wie oben erwähnt das package.json angepasst, dann das gulpfile sowie das tools file eingefügt, und danach im root ordner npm install laufen lassen - es hat den ordner npm modules erzeugt. Wenn ich danach "gulp adminWords2languages" im terminal eingebe, dann bekomme ich nur "gulp: command not found"...hat hier jemand eine Idee?

          Bluefox 1 Reply Last reply Reply Quote 0
          • Bluefox
            Bluefox @jackblackson last edited by

            @jackblackson noch manuell "npm i gulp-cli -g" aufrufen.

            1 Reply Last reply Reply Quote 0
            • jackblackson
              jackblackson last edited by jackblackson

              @Bluefox danke..hab ich gemacht, nun bekomme ich zwar eine andere Meldung, aber ist immer noch nicht sehr schön...words.js Datei besteht, und ich hab auch grad nochmal die gulp datei abgeglichen:
              127a1f75-4847-4d03-94f5-f3b981350c01-grafik.png
              Sagt dir das was?

              Kann das an der gulp Version liegen? Wenn ich die Module aus dem npm-modules ordner lösche und dann npm install mache, installiert er mir gulp 4.0.2..obwohl im package.json 4.0.0 drinnen ist..

              Bluefox 1 Reply Last reply Reply Quote 0
              • Bluefox
                Bluefox @jackblackson last edited by

                @jackblackson Bitte Node 8 verwenden

                jackblackson 1 Reply Last reply Reply Quote 1
                • jackblackson
                  jackblackson @Bluefox last edited by

                  @Bluefox Danke, das hat geholfen!

                  1 Reply Last reply Reply Quote 0
                  • s.bormann
                    s.bormann Most Active last edited by

                    Hi,
                    bei mir läuft die Übersetzung irgendwie nicht mehr richtig. Habe jetzt schon echt viel probiert, aber komme nicht weiter.

                    Was problemlos klappt, ist die Übersetzung von io-package.json.

                    Aber neue Wörter in den i18n-Dateien im admin-Ordner werden nicht mehr übersetzt:
                    Ich habe neue Übersetzungen in den translations.json für deutsch und englisch eingefügt. Wenn ich dann gulp drüberlaufen lasse, werden in den anderen Sprachen für die entsprechenden Begriffe immer nur zwei Anführungszeichen eingefügt, nicht die Übersetzung.

                    Habe mit viel Mühe alle leeren Übersetzungen wieder gelöscht und alles noch mal neu probiert - gleiches Ergebnis. Mit google und mit Yandex.

                    Kann mir jemand helfen?

                    Anbei meine i18n-Dateien.

                    translations.zip

                    Vielen Dank!

                    Mic 1 Reply Last reply Reply Quote 0
                    • Mic
                      Mic Developer @s.bormann last edited by

                      @s-bormann sagte in Gulp ist kein Hexenwerk - Auto translation:

                      werden in den anderen Sprachen für die entsprechenden Begriffe immer nur zwei Anführungszeichen eingefügt, nicht die Übersetzung.

                      Gib uns mal ein konkretes Beispiel. Ich habe kurz deine spanische translations.json angesehen, da sind keine leeren Übersetzungen mit "".

                      s.bormann 1 Reply Last reply Reply Quote 0
                      • s.bormann
                        s.bormann Most Active @Mic last edited by

                        @Mic Richtig, ich habe die Dateien alle von Hand "bereinigt", weil ich dachte, so das Problem lösen zu können. Nach einem erneuten Durchlauf von gulp sieht das dann so aus (Datei gekürzt, aber die letzten beiden Zeilen zeigen das Problem):

                        {
                            "%s is directory. Only file upload allowed.": "% s es el directorio. ",
                            "(Default)": "(Defecto)",
                            "(None)": "(Ninguna)",
                            "(before sending a state a confirmation-box is showed)": "(antes de enviar un estado se muestra un cuadro de confirmación)",
                            "(before sending a state you have to enter this code)": "(antes de enviar un estado, debe ingresar este código)",
                            "(if you have different data points for the actual and the target value)": "(si tiene diferentes puntos de datos para el valor real y el valor objetivo)",
                            "(overwrites common.role property)": "(sobrescribe la propiedad common.role)",
                            "(overwrites common.type property)": "(sobrescribe la propiedad common.type)",
                            "(this is only supported for booleans and for numbers with defined min and max)": "(esto solo se admite para booleanos y para números con mínimo y máximo definidos)",
                            "(this is only supported for numbers)": "(esto solo es compatible con números)",
                            "A 'Linked View' can be opened by a simple click at the following roles": "Una 'Vista vinculada' se puede abrir con un simple clic en los siguientes roles",
                            "Acknowledged": "Reconoció",
                            "Active Background Color:": "Activo - Color de fondo:",
                            "Active Background-Color:": "Activo - Color de fondo:",
                            "Active Devices - Background-Color:": "Dispositivos activos - Color de fondo:",
                            "Active Devices - Background-Opacity:": "Dispositivos activos - Opacidad de fondo:",
                            "Active Devices - Background:": "Dispositivos activos - Antecedentes:",
                            "Active Devices - Overlay-Color:": "Dispositivos activos - Superposición de color:",
                            "Active Devices - Overlay-Opacity:": "Dispositivos activos - Overlay-Opacity:",
                            "Active Devices - Overlay:": "Dispositivos activos - Superposición:",
                            "Active Devices, Hover - Background-Color:": "",
                            "Active Devices, Hover - Background-Opacity:": "",
                        ...
                        

                        Die vollständige Datei kann hier angesehen werden: https://github.com/sbormann/ioBroker.iqontrol/blob/master/admin/i18n/es/translations.json

                        Gibt es eine Art "Verbose"-Mode bei Gulp?

                        Mic 1 Reply Last reply Reply Quote 0
                        • Mic
                          Mic Developer @s.bormann last edited by

                          @s-bormann
                          Ok, in deinem zip-Beispiel steht z.B. in en\translations.json drin:

                                  "add": "add",
                                  "and": "and",
                                  "black": "black",
                                  "bottom": "bottom",
                                  "closed": "closed",
                                  "iqontrol adapter settings": "Adapter settings for iqontrol",
                                  "is only available for": "is only available for",
                                  "left": "left",
                                  "opened": "opened",
                                  "right": "right",
                                  "tilted": "tilted",
                                  "top": "top",
                                  "white": "white"
                          
                          

                          Zip-Beispiel es\translations.json

                              "add": "añadir",
                              "and": "y",
                              "black": "negro",
                              "bottom": "fondo",
                              "iqontrol adapter settings": "Ajustes del adaptador para iqontrol",
                              "is only available for": "solo esta disponible para",
                              "left": "izquierda",
                              "right": "Correcto",
                              "top": "parte superior",
                              "white": "blanco"
                          }
                          

                          Z.B. "closed" fehlt also.

                          Ich lasse laufen: gulp translateAndUpdateWordsJS

                          Ergebnis: closed wird übersetzt und hinzugefügt:
                          7638ce61-a1ff-41e7-93fe-40be4affe87d-image.png

                          Kann es also nicht nachvollziehen.

                          1 Reply Last reply Reply Quote 0
                          • Mic
                            Mic Developer last edited by Mic

                            Ach ja: verwendetes gulpfile.js Datum 2019-01-28.

                            Überprüfe mal deine gulpfile.js, die vom verlinkten Adapter weicht ab (obwohl selbes Datum) zu meiner vom Adapter Creator, z.B.:
                            a100da19-72ae-44a9-a1d8-d5881ba84aea-image.png

                            Siehe im Attachment mein verwendetes gulpfile.gulpfile.zip

                            s.bormann 1 Reply Last reply Reply Quote 0
                            • s.bormann
                              s.bormann Most Active @Mic last edited by

                              @Mic Ha, danke, das wars! Mit Deinem Gulpfile läuft es!! Danke!!

                              Mic 1 Reply Last reply Reply Quote 0
                              • Mic
                                Mic Developer @s.bormann last edited by

                                @s-bormann
                                Gern geschehen, freut mich dass das die Lösung war.

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post

                                Support us

                                ioBroker
                                Community Adapters
                                Donate

                                539
                                Online

                                31.9k
                                Users

                                80.1k
                                Topics

                                1.3m
                                Posts

                                9
                                26
                                3119
                                Loading More Posts
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes
                                Reply
                                • Reply as topic
                                Log in to reply
                                Community
                                Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                The ioBroker Community 2014-2023
                                logo