• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Translation to different languages Automatically ?

Scheduled Pinned Locked Moved Feature Requests
13 Posts 4 Posters 5.2k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    wrote on last edited by codejet
    #1
    1. Hi simple question wondering how nodebb translates languages. I am not familiar in this area. Obviously its not automatic I've visited from a few countries proxies and its still english.. so..

    2. Can you direct users from diff countries to link that serves for their language ? ie say german if lang="de" link added to a redirect link ?

    This would be a handy feature, unless it internally already translates ... but I don't think it does

    1 Reply Last reply
    1
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #2

    Possibly. Right now there are two places where languages are set.

    • System default (set in ACP), applies to guests and users with no language preference
    • User profile setting (set in UCP)

    We could add some logic so that if a query string contains lang, we could serve that translation...

    codejetC 2 Replies Last reply
    2
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    replied to julian on last edited by
    #3

    @julian My current setup, currently redirect w/ GEOIP to subdomain of country, and then after sends that country to a specific country nodebb category.

    If it were possible to make that redirect link have argument lang= it would also make 1 nodebb instance interact with multiple countries , the languages of which I think you guys are currently still continuing developing but is already supported quite well in nodebb.

    👍

    1 Reply Last reply
    0
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    replied to julian on last edited by
    #4

    @julian said:

    We could add some logic so that if a query string contains lang, we could serve that translation...

    please do 😛

    1 Reply Last reply
    1
  • noderN Offline
    noderN Offline
    noder GNU/Linux
    wrote on last edited by
    #5

    👍 @Codejet @julian

    1 Reply Last reply
    1
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    wrote on last edited by
    #6

    Just woke up 😉

    Really think this would be good addition Mr. Julian

    1 Reply Last reply
    1
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #7

    This is on master now, adding ?lang=<language_code> to the url will serve the forum in that language.

    codejetC 2 Replies Last reply
    3
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    replied to <baris> on last edited by
    #8

    @baris said:

    This is on master now, adding ?lang=<language_code> to the url will serve the forum in that language.

    omg, thank you muchly !

    1 Reply Last reply
    0
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    replied to <baris> on last edited by codejet
    #9

    @baris said:

    This is on master now, adding ?lang=<language_code> to the url will serve the forum in that language.

    Does this mean I need to do the master dance ? is there any way to pull it into my 0.7.1. Just wait for the next release I guess @julian said they will be more frequent now so maybe that's not so bad

    julianJ 1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to codejet on last edited by
    #10

    @Codejet said:

    I guess @julian said they will be more frequent now so maybe that's not so bad

    Keep in mind we say this for every release 😆 So far it's not working out as intended.

    codejetC 1 Reply Last reply
    0
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    replied to julian on last edited by
    #11

    @julian said:

    @Codejet said:

    I guess @julian said they will be more frequent now so maybe that's not so bad

    Keep in mind we say this for every release 😆 So far it's not working out as intended.

    Oh come on 😉

    1 Reply Last reply
    0
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    wrote on last edited by
    #12

    is my url correct ?

    http://localhost/?lang=fr
    

    seems to get error:

    24/7 13:31 [4836] - warn: [translator] Language 'undefined' not found. Defaulting to 'en_GB'
    
    1 Reply Last reply
    0
  • codejetC Offline
    codejetC Offline
    codejet GNU/Linux
    wrote on last edited by
    #13

    ok well it's working a treat now. not sure why, actually it doesn't like working form localhost 😞 that would most likely be the prob

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development