Jump to content
  • Multi-Language System for Server-Presentations *Updated* - 06.07.2021

       (0 reviews)

    Coniesan

    Hey folks,

    In this thread I wanna present you a perhaps already known tool I built in 2017 which was improved over the years since then.

    Many projects already used/using it and now I wanna give everybody the possibility to improve your servers presentation in each and every board.

    Like many of you I was confronted with the problem having a server presentation in multiple languages and had to put all the images in spoilers for different target group.

    Depending on how spoilers, or images in them are pre-loaded, this not only makes the pages load heavy, it also runs in the problem of having to change the whole presentation for one forgotten feature, re-slice and many more issues!

     

    And here is my solution for this:

    https://i.l4f.cc/?dir=presentation&id=51&type=gif

    spacer.png

     

    Full Image Preview

    Spoiler
    https://i.l4f.cc/?dir=presentation&id=50&type=img

    spacer.png

     

    Image sliced by script for board/forums

    Spoiler
    https://i.l4f.cc/?dir=presentation&id=50&part=1
    https://i.l4f.cc/?dir=presentation&id=50&part=2
    https://i.l4f.cc/?dir=presentation&id=50&part=3
    https://i.l4f.cc/?dir=presentation&id=50&part=4
    https://i.l4f.cc/?dir=presentation&id=50&part=5
    https://i.l4f.cc/?dir=presentation&id=50&part=6

    spacer.png
    spacer.png

    .... some more parts here (continue at part 5 of 6)

    spacer.png
    spacer.png

     

    Temporary changing language for debugging, testing or demo

    Spoiler

    Image in English:

    https://i.l4f.cc/?dir=presentation&id=50&part=3&lang=EN

    spacer.png

     

    Image in Romanian:

    https://i.l4f.cc/?dir=presentation&id=50&part=3&lang=RO

    spacer.png

     

    Magic - changing presentation language permanently

    Spoiler

    Image language in the first two spoilers will change!

    https://i.l4f.cc/?lang_select=EN&rl=gku1RF

    Click to switch to ENGLISH

    https://i.l4f.cc/?lang_select=DE&rl=gku1RF

    Click to switch to GERMAN

    https://i.l4f.cc/?lang_select=RO&rl=gku1RF

    Click to switch to ROMANIAN

    https://i.l4f.cc/?lang_select=TR&rl=gku1RF

    Click to switch to TURKISH

     

    gku1RF is a back-link redirection url to the forums thread. is used here

     

    Optional Mobile compression for faster loading

    Spoiler

    Usually this is auto-detected but for presentation & testing purposes there is a &mobile parameter
    spacer.png

    Original:

    https://i.l4f.cc/?dir=presentation&id=50&part=3&lang=EN

    spacer.png

     

    Mobile (jpeg - 70% compression):

    https://i.l4f.cc/?dir=presentation&id=50&part=3&lang=EN&mobile=true

    spacer.png

     

    man page:

    Spoiler
    	NAME
    		index.php
    	
    	SYNOPSIS
    		index.php ? [dir] & [id] & [part] & [type] & [lang] & [lang_select] & [r] & [mobile]
    	
    	DESCRIPTION
    		index.php is used to create images by differentiation of visitor location (country) and changing overlayed textarea
    		
    		dir
    			directory where the images are located
    		id
    			number of image (str so 01 is valid, too)
    		part 
    			cause of a limitation of 950px height the 'part' describes which part of a bigger sized images will be shown
    		type
    			is set to 'gif' it will look for a gif animation
    				update (2018-06-25):	Detection of mobile devices enabled if the GIF file has an equal named PNG deposited. 
    							Otherwise the original GIF will be loaded!
    			is set to 'img' it will look for a png file
    				
    		lang
    			manual declaration of language. If no image in this language is found then EN is default
    		lang_select
    			is used to set the default language by creating a session DE|EN|....
    		r
    			if the index part of a goo.gl link (example: reaNiW of https://goo.gl/reaNiW)
    		mobile
    			if set it forces image and optional compression for mobile users
    			( jpeg render with compression of 70% )
    			
    	DIAGNOSTICS
    		convert.php exits with null
    		
    	FILE NAME STNADARDS
    		PNG:
    			Background File: 	Bild_[id].png
    			Text/Main  File:	Text_[lang]_[id].png
    		GIF:
    			Animation File:		Animation_[lang]_[id].gif
    	
    	SEE ALSO
    		imagepng
    		imagegif
    		
    	AUTHORS
    		luki4fun aka. Coniesan

     

     

    • 1st visit sets the language you get presented by browser language.

    • If your specific language isn't supported, it automatically falls back to a language YOU define (default: english).

    • If an image in a specific language is missing it automatically uses the fallback language.

    • Images get cached after first render/slice process to reduce CPU load

    • Language changes with the "lang_select" parameter are permanent and cross board/forums

    • OPTIONAL: There is a feature to combine an "background" image and "text" image with transparency. (depending on who designs u'r presentation and how YOU wanna handle it!)

    • OPTIONAL: gif animations can have multi language select, too

    • OPTIONAL: gif animations can have a mobile alternative (PNG) image to reduce bandwith

    • OPTIONAL *new*: Gif animations now can be compressed for mobile users

    • Mobile compression can be deactivated

    • Mobile compression rate is variable

    If you have any further questions or improvements to the current environment, let me know 😉

    Kind regards
    Coniesan aka. luki4fun

     

      

    Update 1:
    Added mobile compression for gif animations

    Optional animation compression for mobile

    Spoiler

    35f71273.pngspacer.png

    Original:

    spacer.png

     

    Mobile:

    https://i.l4f.cc/?dir=presentation&id=51&type=gif&mobile=true

    spacer.png

     


    Terms of Customer Service

    Individual conditions DM for more info :)

    • Metin2 Dev 1

    User Feedback

    Please sign in to comment

    You will be able to leave a comment after signing in



    Sign In Now

    There are no reviews to display.


Announcements



  • Activity

    1. 121

      3D Shop - Mark Service

    2. 0

      Paid Service - Carbon Projects

    3. 0

      Paid Service - Nimueh [2D Graphic Service]

    4. 1

      DDoS protection / Systems administration

    5. 5

      Reversed Systems For Sale

    6. 2

      ✨ASHIKA ARTS✨ - GRAPHICS | ANIMATION | WEBDESIGN

    7. 0

      Valki's C++/Python works

    8. 121

      3D Shop - Mark Service

    9. 2

      ✨ASHIKA ARTS✨ - GRAPHICS | ANIMATION | WEBDESIGN

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.