1function Translate() { 2 //initialization 3 this.init = function (attribute, lang) { 4 this.attribute = attribute; 5 this.lang = lang; 6 } 7 8 this.process = function () { 9 //translate 10 var langObject = translations[this.lang]; 11 var allDom = document.getElementsByTagName("*"); 12 for (var i = 0; i < allDom.length; i++) { 13 var elem = allDom[i]; 14 var key = elem.getAttribute(this.attribute); 15 if (key != null) { 16 elem.innerHTML = langObject[key]; 17 } 18 } 19 } 20 21} 22 23var translations = { 24 "en": 25 { 26 "hello": "Hi there", 27 "iam": "I'm Diego Velásquez", 28 "about": "About me", 29 "software_developer": "Software Engineer", 30 "content_creator": "Content Creator", 31 "public_speaker": "Public Speaker", 32 "coffee_drinker": "Coffee Drinker", 33 "intro_1": "I'm a Software Engineer, Content creator from Lima Peru and a recognized ", 34 "intro_2": "I love technology and mobile software development, working on Android / iOS mobile applications since 2010.", 35 "intro_products": "Creator of <a class=\"a-bold\" target=\"_blank\" href=\"https://consoly.app/\">Consoly</a>, <a class=\"a-bold\" target=\"_blank\" href=\"https://www.quickprinterforandroid.com/\">Quick Printer</a>, and <a class=\"a-bold\" target=\"_blank\" href=\"https://pseudocodigo.app\">Pseudocode</a> (1M+ downloads). ", 36 "intro_4": "Quick Printer is used by companies; Pseudocode helps students learn to code, and Consoly is focused on daily code challenges for developers. Each aimed at a different audience. ", 37 "intro_5": "For years I've worked as a software engineer for companies based in San Francisco. I publish most of my content on <a target=\"_blank\" href=\"https://www.youtube.com/diegoveloper\">YouTube</a> (technology, programming, and entertainment), and I've given talks and workshops in many countries. On other social networks I'm also <strong>diegoveloper</strong>", 38 "proud": "I'm proud of", 39 "cool_things": "Here are a few cool things about me", 40 "android_apps_title": "My products", 41 "android_apps_description": "I developed many apps for companies, but these are my own products: Consoly (Daily code challenges), Quick Printer, and Pseudocode (1M+ downloads on Android and iOS).", 42 "consoly_skills_line": " (Daily code challenges)", 43 "pseudocode_downloads_note": " (1M+ downloads)", 44 "quickprinter_downloads_note": " (+300k downloads)", 45 "google_recognition_title": "Google Recognition", 46 "google_recognition_description": "I'm very happy to have these Google/Flutter recognitions", 47 "flutter_packages_description": "Because I love Flutter, I created some open source libraries", 48 "stackoverflow_title": "Stackoverflow contributor", 49 "stackoverflow_description": "With nearly 100k reputation points and an impact on over 7 million developers", 50 "clothing_title": "Clothing brand", 51 "clothing_description": "I have created a clothing brand to identify all developers", 52 "community_title": "Amazing community", 53 "community_description": "We have an incredible community of developers who are passionate about development and dedicated to sharing knowledge" 54 } 55 , 56 "es": 57 { 58 "hello": "Hola", 59 "iam": "Soy Diego Velásquez", 60 "about": "Acerca de mÃ", 61 "software_developer": "Ingeniero de Software", 62 "content_creator": "Creador de contenido", 63 "public_speaker": "Orador público", 64 "coffee_drinker": "Adicto al café", 65 "intro_1": "Soy Ingeniero de Software, Creador de contenido de Lima Perú y reconocido ", 66 "intro_2": "Me encanta la tecnologÃa y el desarrollo de software móvil, trabajo haciendo aplicaciones móviles Android/iOS desde 2010.", 67 "intro_products": "Creador de <a class=\"a-bold\" target=\"_blank\" href=\"https://consoly.app/\">Consoly</a>, <a class=\"a-bold\" target=\"_blank\" href=\"https://www.quickprinterforandroid.com/\">Quick Printer</a> y <a class=\"a-bold\" target=\"_blank\" href=\"https://pseudocodigo.app\">Pseudocode</a> (más de 1 millón de descargas). ", 68 "intro_4": "Quick Printer lo usan empresas; Pseudocode está pensado para estudiantes que aprenden a programar, y Consoly está enfocada en retos diarios para programadores. Cada una con su público distinto. ",
69 "intro_5": "Llevo años trabajando como ingeniero de software para empresas con base en San Francisco. Comparto la mayor parte de mi contenido en <a target=\"_blank\" href=\"https://www.youtube.com/diegoveloper\">YouTube</a> (tecnologÃa, programación y entretenimiento), y he dado charlas y talleres en varios paÃses. En el resto de redes también soy <strong>diegoveloper</strong>", 70 "proud": "Estoy orgulloso de", 71 "cool_things": "Aquà hay algunas cosas interesantes sobre mÃ", 72 "android_apps_title": "Mis productos", 73 "android_apps_description": "Desarrollé muchas aplicaciones para empresas, pero estos son mis propios productos: Consoly (Retos diarios de código), Quick Printer y Pseudocode (más de 1 millón de descargas en Android e iOS).", 74 "consoly_skills_line": " (Retos diarios de código)", 75 "pseudocode_downloads_note": " (más de 1M de descargas)", 76 "quickprinter_downloads_note": " (+300k descargas)", 77 "google_recognition_title": "Reconocimiento de Google", 78 "google_recognition_description": "Estoy muy feliz de tener estos reconocimientos de Google/Flutter", 79 "flutter_packages_description": "Como me encanta Flutter, creé algunas bibliotecas de código abierto", 80 "stackoverflow_title": "Colaborador de Stackoverflow", 81 "stackoverflow_description": "Con casi 100 mil puntos de reputación y un impacto en más de 7 millones de desarrolladores", 82 "clothing_title": "Marca de ropa", 83 "clothing_description": "He creado una marca de ropa para identificar a todos los desarrolladores",
84 "community_title": "Comunidad increÃble", 85 "community_description": "Tenemos una increÃble comunidad de desarrolladores apasionados por el desarrollo y dedicados a compartir conocimientos" 86 } 87};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.