Fix #3839: Add meta data to the new discover pages

stable
David Barragán Merino 2016-02-01 20:06:03 +01:00
parent 935399ac7c
commit fa62ad3abf
18 changed files with 172 additions and 51 deletions

View File

@ -2,7 +2,7 @@
"COMMON": { "COMMON": {
"YES": "Si", "YES": "Si",
"NO": "No", "NO": "No",
"OR": "or", "OR": "o",
"LOADING": "Carregant...", "LOADING": "Carregant...",
"LOADING_PROJECT": "Carregant projecte...", "LOADING_PROJECT": "Carregant projecte...",
"DATE": "DD MMM YYYY", "DATE": "DD MMM YYYY",
@ -19,11 +19,11 @@
"TAG_LINE": "La teua eïna de gestió de projectes àgil, gratuita i de codi obert ", "TAG_LINE": "La teua eïna de gestió de projectes àgil, gratuita i de codi obert ",
"TAG_LINE_2": "ESTIMA EL TEU PROJECTE", "TAG_LINE_2": "ESTIMA EL TEU PROJECTE",
"BLOCK": "Bloquejar", "BLOCK": "Bloquejar",
"BLOCK_TITLE": "Block this item for example if it has a dependency that can not be satisfied", "BLOCK_TITLE": "Bloqueja aquest element si té una dependència que no pot ser satisfeta",
"BLOCKED": "Bloquejat", "BLOCKED": "Bloquejat",
"UNBLOCK": "Desbloquejar", "UNBLOCK": "Desbloquejar",
"UNBLOCK_TITLE": "Unblock this item", "UNBLOCK_TITLE": "Desbloquejar aquest element",
"BLOCKED_NOTE": "Why is this blocked?", "BLOCKED_NOTE": "Per qué està bloquejat?",
"BLOCKED_REASON": "Per favor, explica la raó", "BLOCKED_REASON": "Per favor, explica la raó",
"CREATED_BY": "Creat per {{fullDisplayName}}", "CREATED_BY": "Creat per {{fullDisplayName}}",
"FROM": "de", "FROM": "de",
@ -169,7 +169,7 @@
"UNWATCH": "Unwatch", "UNWATCH": "Unwatch",
"WATCHERS": "Watchers", "WATCHERS": "Watchers",
"BUTTON_TITLE": "Watch/Unwatch this item", "BUTTON_TITLE": "Watch/Unwatch this item",
"COUNTER_TITLE": "{total, plural, one{one watcher} other{# watchers}}" "COUNTER_TITLE": "{total, plural, one{un seguidor} other{# seguidors}}"
}, },
"VOTE_BUTTON": { "VOTE_BUTTON": {
"UPVOTE": "Upvote", "UPVOTE": "Upvote",
@ -282,9 +282,9 @@
"HEADER": "Ja tinc un compte de Taiga", "HEADER": "Ja tinc un compte de Taiga",
"PLACEHOLDER_AUTH_NAME": "Nom d'usuari i correu electrònic (sensible a majúscules i minúscules)", "PLACEHOLDER_AUTH_NAME": "Nom d'usuari i correu electrònic (sensible a majúscules i minúscules)",
"LINK_FORGOT_PASSWORD": "L'has oblidat?", "LINK_FORGOT_PASSWORD": "L'has oblidat?",
"TITLE_LINK_FORGOT_PASSWORD": "Did you forget your password?", "TITLE_LINK_FORGOT_PASSWORD": "Has oblidat la contrasenya?",
"ACTION_ENTER": "Entrar", "ACTION_ENTER": "Entrar",
"ACTION_SIGN_IN": "Login", "ACTION_SIGN_IN": "Entrar",
"PLACEHOLDER_AUTH_PASSWORD": "Contrasenya (sensible a majúscules i minúscules)" "PLACEHOLDER_AUTH_PASSWORD": "Contrasenya (sensible a majúscules i minúscules)"
}, },
"LOGIN_FORM": { "LOGIN_FORM": {
@ -352,11 +352,11 @@
"PAGE_TITLE": "Home - Taiga", "PAGE_TITLE": "Home - Taiga",
"PAGE_DESCRIPTION": "La home de Taiga amb els teus projectes principals, totes les històries d'usuari, tasques i incidències que tens assignades i aquelles que estàs Watching", "PAGE_DESCRIPTION": "La home de Taiga amb els teus projectes principals, totes les històries d'usuari, tasques i incidències que tens assignades i aquelles que estàs Watching",
"EMPTY_WORKING_ON": "<strong>Sembla buit, no?</strong> Comenceu a treballar amb Taiga i voràs ací les históries, tasques e incidències en les que estás treballant.", "EMPTY_WORKING_ON": "<strong>Sembla buit, no?</strong> Comenceu a treballar amb Taiga i voràs ací les históries, tasques e incidències en les que estás treballant.",
"EMPTY_WATCHING": "<strong>Follow</strong> User Stories, Tasks, Issues in your projects and be notified about its changes :)", "EMPTY_WATCHING": "<strong>Segueix</strong> históries, tasques e incidéncies en els teus project i rep notificacions quan canvien :)",
"EMPTY_PROJECT_LIST": "No tens cap projecte encara", "EMPTY_PROJECT_LIST": "No tens cap projecte encara",
"WORKING_ON_SECTION": "En Progrés", "WORKING_ON_SECTION": "En Progrés",
"WATCHING_SECTION": "Observant", "WATCHING_SECTION": "Observant",
"DASHBOARD": "Projects Dashboard" "DASHBOARD": "Panell principal"
}, },
"PROJECTS": { "PROJECTS": {
"PAGE_TITLE": "Els meus projectes - Taiga", "PAGE_TITLE": "Els meus projectes - Taiga",
@ -366,13 +366,13 @@
"ATTACHMENT": { "ATTACHMENT": {
"SECTION_NAME": "Adjunts", "SECTION_NAME": "Adjunts",
"TITLE": "{{ fileName }} pujat el {{ date }}", "TITLE": "{{ fileName }} pujat el {{ date }}",
"LIST_VIEW_MODE": "List view mode", "LIST_VIEW_MODE": "Vista de llista",
"GALLERY_VIEW_MODE": "Gallery view mode", "GALLERY_VIEW_MODE": "Galeria",
"DESCRIPTION": "Escriu una descripció curta", "DESCRIPTION": "Escriu una descripció curta",
"DEPRECATED": "(obsolet)", "DEPRECATED": "(obsolet)",
"DEPRECATED_FILE": "Obsolet?", "DEPRECATED_FILE": "Obsolet?",
"ADD": "Afegeix un nou adjunt. {{maxFileSizeMsg}}", "ADD": "Afegeix un nou adjunt. {{maxFileSizeMsg}}",
"DROP": "Drop attachments here!", "DROP": "Deixa els adjunts ací",
"MAX_FILE_SIZE": "[Max. grandària: {{maxFileSize}}]", "MAX_FILE_SIZE": "[Max. grandària: {{maxFileSize}}]",
"SHOW_DEPRECATED": "+ mostra els adjunts obsolets", "SHOW_DEPRECATED": "+ mostra els adjunts obsolets",
"HIDE_DEPRECATED": "- Amagar els adjunts obsolets", "HIDE_DEPRECATED": "- Amagar els adjunts obsolets",
@ -453,11 +453,11 @@
"NUMBER_US_POINTS": "Nombre de punts d'històries (0 per a una quantitat indeterminada)", "NUMBER_US_POINTS": "Nombre de punts d'històries (0 per a una quantitat indeterminada)",
"TAGS": "Etiquetes", "TAGS": "Etiquetes",
"DESCRIPTION": "Descripció", "DESCRIPTION": "Descripció",
"RECRUITING": "Is this project looking for people?", "RECRUITING": "Este projecte busca col·laboracions?",
"RECRUITING_MESSAGE": "Who are you looking for?", "RECRUITING_MESSAGE": "A qui estàs buscant?",
"RECRUITING_PLACEHOLDER": "Define the profiles you are looking for", "RECRUITING_PLACEHOLDER": "Defineix els perfils que estàs buscant",
"PUBLIC_PROJECT": "Projecte públic", "PUBLIC_PROJECT": "Projecte públic",
"PUBLIC_PROJECT_DESC": "Users will be able to find and view your project", "PUBLIC_PROJECT_DESC": "Els usuaris podràn trobar i vore el teu projecte",
"PRIVATE_PROJECT": "Projecte privat", "PRIVATE_PROJECT": "Projecte privat",
"PRIVATE_PROJECT_DESC": "By default, this project will be hidden to the public", "PRIVATE_PROJECT_DESC": "By default, this project will be hidden to the public",
"PRIVATE_OR_PUBLIC": "What's the difference between public and private projects?", "PRIVATE_OR_PUBLIC": "What's the difference between public and private projects?",
@ -690,9 +690,9 @@
"ACTIVITY_TAB": "Timeline", "ACTIVITY_TAB": "Timeline",
"ACTIVITY_TAB_TITLE": "Mostra tota la activitat d'aquest usuari", "ACTIVITY_TAB_TITLE": "Mostra tota la activitat d'aquest usuari",
"PROJECTS_TAB": "Projectes", "PROJECTS_TAB": "Projectes",
"PROJECTS_TAB_TITLE": "List of all projects in which the user is a member", "PROJECTS_TAB_TITLE": "Mostra tots els projects del que el usuari es administrador",
"LIKES_TAB": "Likes", "LIKES_TAB": "Favorits",
"LIKES_TAB_TITLE": "List all likes made by this user", "LIKES_TAB_TITLE": "Mostra tots els favorits del usuari",
"VOTES_TAB": "Vots", "VOTES_TAB": "Vots",
"VOTES_TAB_TITLE": "List all votes made by this user", "VOTES_TAB_TITLE": "List all votes made by this user",
"WATCHED_TAB": "Watched", "WATCHED_TAB": "Watched",
@ -703,7 +703,7 @@
}, },
"PROFILE_SIDEBAR": { "PROFILE_SIDEBAR": {
"TITLE": "El teu perfil", "TITLE": "El teu perfil",
"DESCRIPTION": "People can see everything you do and what you are working on. Add a nice bio to give an enhanced version of your information.", "DESCRIPTION": "La gent pot vore tot el que fas i en qué estàs treballant. Afegix una bio interessant per a donar una millor versió de la teua informació.",
"ADD_INFO": "Edita la bio" "ADD_INFO": "Edita la bio"
}, },
"PROFILE_FAVS": { "PROFILE_FAVS": {
@ -718,7 +718,7 @@
"FILTER_TYPE_TASK_TITLES": "Mostra només tasquest", "FILTER_TYPE_TASK_TITLES": "Mostra només tasquest",
"FILTER_TYPE_ISSUES": "Incidències", "FILTER_TYPE_ISSUES": "Incidències",
"FILTER_TYPE_ISSUES_TITLE": "Mostra només incidències", "FILTER_TYPE_ISSUES_TITLE": "Mostra només incidències",
"EMPTY_TITLE": "It looks like there's nothing to show here." "EMPTY_TITLE": "Sembla que no hi ha res que mostrar"
} }
}, },
"PROJECT": { "PROJECT": {
@ -727,10 +727,10 @@
"SECTION_PROJECTS": "Projectes", "SECTION_PROJECTS": "Projectes",
"HELP": "Reordena els teus projectes per a establir els més utilitzats en les primeres posicions. <br/> Els 10 millors projectes apareixeran en la llista de projectes de la barra de navegació superior", "HELP": "Reordena els teus projectes per a establir els més utilitzats en les primeres posicions. <br/> Els 10 millors projectes apareixeran en la llista de projectes de la barra de navegació superior",
"PRIVATE": "Projecte privat", "PRIVATE": "Projecte privat",
"LOOKING_FOR_PEOPLE": "This project is looking for people", "LOOKING_FOR_PEOPLE": "Este projecte busca col·laboracions",
"FANS_COUNTER_TITLE": "{total, plural, one{one fan} other{# fans}}", "FANS_COUNTER_TITLE": "{total, plural, one{un fan} other{# fans}}",
"WATCHERS_COUNTER_TITLE": "{total, plural, one{one watcher} other{# watchers}}", "WATCHERS_COUNTER_TITLE": "{total, plural, one{un seguidor} other{# seguidors}}",
"MEMBERS_COUNTER_TITLE": "{total, plural, one{one member} other{# members}}", "MEMBERS_COUNTER_TITLE": "{total, plural, one{un membre} other{# membres}}",
"STATS": { "STATS": {
"PROJECT": "punts<br/> projecte", "PROJECT": "punts<br/> projecte",
"DEFINED": "punts<br/> definits", "DEFINED": "punts<br/> definits",
@ -753,7 +753,7 @@
"PLACEHOLDER_SEARCH": "Cerca en...", "PLACEHOLDER_SEARCH": "Cerca en...",
"ACTION_CREATE_PROJECT": "Crear projecte", "ACTION_CREATE_PROJECT": "Crear projecte",
"ACTION_IMPORT_PROJECT": "Importar projecte", "ACTION_IMPORT_PROJECT": "Importar projecte",
"MANAGE_PROJECTS": "Manage projects", "MANAGE_PROJECTS": "Gestiona els projectes",
"TITLE_CREATE_PROJECT": "Crear projecte", "TITLE_CREATE_PROJECT": "Crear projecte",
"TITLE_IMPORT_PROJECT": "Importar projecte", "TITLE_IMPORT_PROJECT": "Importar projecte",
"TITLE_PRVIOUS_PROJECT": "Mostra projectes previs", "TITLE_PRVIOUS_PROJECT": "Mostra projectes previs",
@ -797,14 +797,14 @@
"LIKE": "M'agrada", "LIKE": "M'agrada",
"LIKED": "T'agrada", "LIKED": "T'agrada",
"UNLIKE": "No t'agrada", "UNLIKE": "No t'agrada",
"BUTTON_TITLE": "Like or unlike this project", "BUTTON_TITLE": "Favoriteja o desfavoriteja aquest projecte",
"COUNTER_TITLE": "{total, plural, one{one fan} other{# fans}}" "COUNTER_TITLE": "{total, plural, un{un fan} altres{# fans}}"
}, },
"WATCH_BUTTON": { "WATCH_BUTTON": {
"BUTTON_TITLE": "Segueix este projecte i edita les notificacions", "BUTTON_TITLE": "Segueix este projecte i edita les notificacions",
"WATCH": "Segueix", "WATCH": "Segueix",
"WATCHING": "Observant", "WATCHING": "Observant",
"COUNTER_TITLE": "{total, plural, one{one watcher} other{# watchers}}", "COUNTER_TITLE": "{total, plural, one{un seguidor} other{# seguidors}}",
"OPTIONS": { "OPTIONS": {
"NOTIFY_ALL": "Receive all notifications", "NOTIFY_ALL": "Receive all notifications",
"NOTIFY_ALL_TITLE": "Receive all notifications for this project", "NOTIFY_ALL_TITLE": "Receive all notifications for this project",
@ -914,7 +914,7 @@
"TYPE_NEW_COMMENT": "Escriu un nou comentari ací", "TYPE_NEW_COMMENT": "Escriu un nou comentari ací",
"SHOW_DELETED": "Mostra el comentari esborrat.", "SHOW_DELETED": "Mostra el comentari esborrat.",
"HIDE_DELETED": "Amaga el comentari esborrat", "HIDE_DELETED": "Amaga el comentari esborrat",
"DELETE": "Delete comment", "DELETE": "Esborrar comentari",
"RESTORE": "Resturar comentari." "RESTORE": "Resturar comentari."
}, },
"ACTIVITY": { "ACTIVITY": {
@ -976,12 +976,12 @@
"CUSTOMIZE_GRAPH": "Edita el teu gràfic de backlog", "CUSTOMIZE_GRAPH": "Edita el teu gràfic de backlog",
"CUSTOMIZE_GRAPH_TEXT": "Per a tindre un gràfic que t'ajude a seguir la evolució del projecte deus de editar els punts i els sprints per mig del", "CUSTOMIZE_GRAPH_TEXT": "Per a tindre un gràfic que t'ajude a seguir la evolució del projecte deus de editar els punts i els sprints per mig del",
"CUSTOMIZE_GRAPH_ADMIN": "Admin", "CUSTOMIZE_GRAPH_ADMIN": "Admin",
"CUSTOMIZE_GRAPH_TITLE": "Set up the points and sprints through the Admin", "CUSTOMIZE_GRAPH_TITLE": "Estableix els punts i els sprints al Admin",
"MOVE_US_TO_CURRENT_SPRINT": "Envia al Sprint", "MOVE_US_TO_CURRENT_SPRINT": "Envia al Sprint",
"MOVE_US_TO_LATEST_SPRINT": "Move to latest Sprint", "MOVE_US_TO_LATEST_SPRINT": "Posar a l'ultim sprint",
"SHOW_FILTERS": "Mostra filtres", "SHOW_FILTERS": "Mostra filtres",
"SHOW_TAGS": "Mostra etiquetes", "SHOW_TAGS": "Mostra etiquetes",
"EMPTY": "The backlog is empty!", "EMPTY": "El backlog està buit!",
"CREATE_NEW_US": "Crea una nova US", "CREATE_NEW_US": "Crea una nova US",
"CREATE_NEW_US_EMPTY_HELP": "Potser vols crear una nova història d'usuari", "CREATE_NEW_US_EMPTY_HELP": "Potser vols crear una nova història d'usuari",
"EXCESS_OF_POINTS": "Excés de punts", "EXCESS_OF_POINTS": "Excés de punts",
@ -1066,8 +1066,8 @@
"TITLE_ACTION_ADD_BULK": "Afegeix noves històries d'usuari en grup", "TITLE_ACTION_ADD_BULK": "Afegeix noves històries d'usuari en grup",
"TITLE_ACTION_ASSIGN": "Assignar tasca", "TITLE_ACTION_ASSIGN": "Assignar tasca",
"TITLE_ACTION_EDIT": "Editar tasca", "TITLE_ACTION_EDIT": "Editar tasca",
"PLACEHOLDER_CARD_TITLE": "This could be a task", "PLACEHOLDER_CARD_TITLE": "Açó podría ser una tasca",
"PLACEHOLDER_CARD_TEXT": "Split Stories into tasks to track them separately", "PLACEHOLDER_CARD_TEXT": "Divideix les históries per a poder gertionar-les separadament",
"TABLE": { "TABLE": {
"COLUMN": "Història d'usuari", "COLUMN": "Història d'usuari",
"TITLE_ACTION_FOLD": "Plegar columna", "TITLE_ACTION_FOLD": "Plegar columna",
@ -1135,7 +1135,7 @@
}, },
"ISSUES": { "ISSUES": {
"PAGE_TITLE": "Incidències - {{projectName}}", "PAGE_TITLE": "Incidències - {{projectName}}",
"PAGE_DESCRIPTION": "The issues list panel of the project {{projectName}}: {{projectDescription}}", "PAGE_DESCRIPTION": "El panell d'incidències de {{projectName}}: {{projectDescription}}",
"LIST_SECTION_NAME": "Incidències", "LIST_SECTION_NAME": "Incidències",
"SECTION_NAME": "Detalls d'incidència", "SECTION_NAME": "Detalls d'incidència",
"ACTION_NEW_ISSUE": "+ NOVA INCIDÈNCIA", "ACTION_NEW_ISSUE": "+ NOVA INCIDÈNCIA",
@ -1224,7 +1224,7 @@
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Cerca - {{projectName}}", "PAGE_TITLE": "Cerca - {{projectName}}",
"PAGE_DESCRIPTION": "Search anything, user stories, issues, tasks or wiki pages, in the project {{projectName}}: {{projectDescription}}", "PAGE_DESCRIPTION": "Busca qualsevol cosa al projecte {{projectName}}: {{projectDescription}}",
"FILTER_USER_STORIES": "Històries d'usuari", "FILTER_USER_STORIES": "Històries d'usuari",
"FILTER_ISSUES": "Incidències", "FILTER_ISSUES": "Incidències",
"FILTER_TASKS": "Tasca", "FILTER_TASKS": "Tasca",
@ -1236,7 +1236,7 @@
}, },
"TEAM": { "TEAM": {
"PAGE_TITLE": "Equip - {{projectName}}", "PAGE_TITLE": "Equip - {{projectName}}",
"PAGE_DESCRIPTION": "The team panel to show all the members of the project {{projectName}}: {{projectDescription}}", "PAGE_DESCRIPTION": "El panell d'equip mostra tots els membres del projecte {{projectName}}: {{projectDescription}}",
"SECTION_NAME": "Equip", "SECTION_NAME": "Equip",
"APP_TITLE": "EQUIP - {{projectName}}", "APP_TITLE": "EQUIP - {{projectName}}",
"PLACEHOLDER_INPUT_SEARCH": "Busca per nom complet...", "PLACEHOLDER_INPUT_SEARCH": "Busca per nom complet...",
@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1453,7 +1455,7 @@
"MOST_LIKED": "Most liked", "MOST_LIKED": "Most liked",
"MOST_LIKED_EMPTY": "There are no LIKED projects yet", "MOST_LIKED_EMPTY": "There are no LIKED projects yet",
"VIEW_MORE": "View more", "VIEW_MORE": "View more",
"RECRUITING": "This project is looking for people", "RECRUITING": "Este projecte busca col·laborados",
"FEATURED": "Featured Projects", "FEATURED": "Featured Projects",
"EMPTY": "There are no projects to show with this search criteria.<br> Try again!", "EMPTY": "There are no projects to show with this search criteria.<br> Try again!",
"FILTERS": { "FILTERS": {
@ -1468,6 +1470,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Escriu algo...", "INPUT_PLACEHOLDER": "Escriu algo...",
"ACTION_TITLE": "Cerca", "ACTION_TITLE": "Cerca",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1468,6 +1470,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Geben sie etwas ein...", "INPUT_PLACEHOLDER": "Geben sie etwas ein...",
"ACTION_TITLE": "Suche", "ACTION_TITLE": "Suche",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -1448,6 +1448,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1470,6 +1472,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Type something...", "INPUT_PLACEHOLDER": "Type something...",
"ACTION_TITLE": "Search", "ACTION_TITLE": "Search",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Descubre proyectos", "DISCOVER_TITLE": "Descubre proyectos",
"DISCOVER_SUBTITLE": "{projects, plural, one{Un proyecto público por descubrir} other{# proyectos público por descubrir}}\n", "DISCOVER_SUBTITLE": "{projects, plural, one{Un proyecto público por descubrir} other{# proyectos público por descubrir}}\n",
"MOST_ACTIVE": "Más activos", "MOST_ACTIVE": "Más activos",
@ -1468,6 +1470,8 @@
"CLEAR": "Borrar filtros" "CLEAR": "Borrar filtros"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Escribe algo...", "INPUT_PLACEHOLDER": "Escribe algo...",
"ACTION_TITLE": "Buscar", "ACTION_TITLE": "Buscar",
"RESULTS": "Resultados de búsqueda" "RESULTS": "Resultados de búsqueda"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1468,6 +1470,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Type something...", "INPUT_PLACEHOLDER": "Type something...",
"ACTION_TITLE": "Hae", "ACTION_TITLE": "Hae",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Découvrir les projets", "DISCOVER_TITLE": "Découvrir les projets",
"DISCOVER_SUBTITLE": "{projects, plural, one{Un projet public à découvrir} other{# projets publics à découvrir}}", "DISCOVER_SUBTITLE": "{projects, plural, one{Un projet public à découvrir} other{# projets publics à découvrir}}",
"MOST_ACTIVE": "les plus actifs", "MOST_ACTIVE": "les plus actifs",
@ -1468,6 +1470,8 @@
"CLEAR": "Effacer les filtres" "CLEAR": "Effacer les filtres"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Écrivez quelque chose...", "INPUT_PLACEHOLDER": "Écrivez quelque chose...",
"ACTION_TITLE": "Rechercher", "ACTION_TITLE": "Rechercher",
"RESULTS": "Résultats de la recherche" "RESULTS": "Résultats de la recherche"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Scopri progetti", "DISCOVER_TITLE": "Scopri progetti",
"DISCOVER_SUBTITLE": "{projects, plural, one{Un progetto pubblico da scoprire} other{# progetti pubblici da scoprire}}", "DISCOVER_SUBTITLE": "{projects, plural, one{Un progetto pubblico da scoprire} other{# progetti pubblici da scoprire}}",
"MOST_ACTIVE": "Più attivi", "MOST_ACTIVE": "Più attivi",
@ -1468,6 +1470,8 @@
"CLEAR": "Cancella filtri" "CLEAR": "Cancella filtri"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Inserisci testo...", "INPUT_PLACEHOLDER": "Inserisci testo...",
"ACTION_TITLE": "Cerca", "ACTION_TITLE": "Cerca",
"RESULTS": "Risultati della ricerca" "RESULTS": "Risultati della ricerca"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1468,6 +1470,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Typ iets...", "INPUT_PLACEHOLDER": "Typ iets...",
"ACTION_TITLE": "Zoek", "ACTION_TITLE": "Zoek",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1468,6 +1470,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Type something...", "INPUT_PLACEHOLDER": "Type something...",
"ACTION_TITLE": "Szukaj", "ACTION_TITLE": "Szukaj",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Descobrir projetos", "DISCOVER_TITLE": "Descobrir projetos",
"DISCOVER_SUBTITLE": "{projects, plural, um{One public project to discover} outro{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, um{One public project to discover} outro{# public projects to discover}}",
"MOST_ACTIVE": "Mais ativo", "MOST_ACTIVE": "Mais ativo",
@ -1468,6 +1470,8 @@
"CLEAR": "Limpar filtros" "CLEAR": "Limpar filtros"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Digite algo...", "INPUT_PLACEHOLDER": "Digite algo...",
"ACTION_TITLE": "Procurar", "ACTION_TITLE": "Procurar",
"RESULTS": "Resultado de pesquisa." "RESULTS": "Resultado de pesquisa."

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1468,6 +1470,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Введите что-нибудь...", "INPUT_PLACEHOLDER": "Введите что-нибудь...",
"ACTION_TITLE": "Поиск", "ACTION_TITLE": "Поиск",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -2,7 +2,7 @@
"COMMON": { "COMMON": {
"YES": "Ja", "YES": "Ja",
"NO": "Nej", "NO": "Nej",
"OR": "or", "OR": "eller",
"LOADING": "Laddar ...", "LOADING": "Laddar ...",
"LOADING_PROJECT": "Laddar projekt...", "LOADING_PROJECT": "Laddar projekt...",
"DATE": "YYYY-MM-DD", "DATE": "YYYY-MM-DD",
@ -454,16 +454,16 @@
"TAGS": "Etiketter", "TAGS": "Etiketter",
"DESCRIPTION": "Beskrivning", "DESCRIPTION": "Beskrivning",
"RECRUITING": "Is this project looking for people?", "RECRUITING": "Is this project looking for people?",
"RECRUITING_MESSAGE": "Who are you looking for?", "RECRUITING_MESSAGE": "Vem letar du efter?",
"RECRUITING_PLACEHOLDER": "Define the profiles you are looking for", "RECRUITING_PLACEHOLDER": "Define the profiles you are looking for",
"PUBLIC_PROJECT": "Publika projekt", "PUBLIC_PROJECT": "Publika projekt",
"PUBLIC_PROJECT_DESC": "Users will be able to find and view your project", "PUBLIC_PROJECT_DESC": "Users will be able to find and view your project",
"PRIVATE_PROJECT": "Privata projekt", "PRIVATE_PROJECT": "Privata projekt",
"PRIVATE_PROJECT_DESC": "By default, this project will be hidden to the public", "PRIVATE_PROJECT_DESC": "By default, this project will be hidden to the public",
"PRIVATE_OR_PUBLIC": "What's the difference between public and private projects?", "PRIVATE_OR_PUBLIC": "Vad är skillnaden mellan publika och privata projekt?",
"DELETE": "Ta bort projekt", "DELETE": "Ta bort projekt",
"LOGO_HELP": "The image will be scaled to 80x80px.", "LOGO_HELP": "Bilden kommer skalas till 80x80px.",
"CHANGE_LOGO": "Change logo", "CHANGE_LOGO": "Ändra logga",
"ACTION_USE_DEFAULT_LOGO": "Use default image" "ACTION_USE_DEFAULT_LOGO": "Use default image"
}, },
"REPORTS": { "REPORTS": {
@ -914,7 +914,7 @@
"TYPE_NEW_COMMENT": "Skriv en ny kommentar här", "TYPE_NEW_COMMENT": "Skriv en ny kommentar här",
"SHOW_DELETED": "Visa raderade kommentarer", "SHOW_DELETED": "Visa raderade kommentarer",
"HIDE_DELETED": "Dölj raderade kommentarer", "HIDE_DELETED": "Dölj raderade kommentarer",
"DELETE": "Delete comment", "DELETE": "Ta bort kommentar",
"RESTORE": "Hämta tillbaka tidigare kommentarer" "RESTORE": "Hämta tillbaka tidigare kommentarer"
}, },
"ACTIVITY": { "ACTIVITY": {
@ -1284,7 +1284,7 @@
} }
}, },
"USER_PROFILE": { "USER_PROFILE": {
"IMAGE_HELP": "The image will be scaled to 80x80px.", "IMAGE_HELP": "Bilden kommer skalas till 80x80px.",
"ACTION_CHANGE_IMAGE": "Ändra", "ACTION_CHANGE_IMAGE": "Ändra",
"ACTION_USE_GRAVATAR": "Use default image", "ACTION_USE_GRAVATAR": "Use default image",
"ACTION_DELETE_ACCOUNT": "Ta bort Taiga-kontot", "ACTION_DELETE_ACCOUNT": "Ta bort Taiga-kontot",
@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Discover projects", "DISCOVER_TITLE": "Discover projects",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "Most active", "MOST_ACTIVE": "Most active",
@ -1468,6 +1470,8 @@
"CLEAR": "Clear filters" "CLEAR": "Clear filters"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Skriv något ...", "INPUT_PLACEHOLDER": "Skriv något ...",
"ACTION_TITLE": "Sök", "ACTION_TITLE": "Sök",
"RESULTS": "Search results" "RESULTS": "Search results"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "Proje keşfedin", "DISCOVER_TITLE": "Proje keşfedin",
"DISCOVER_SUBTITLE": "{projects, plural, one{Keşfedilecek bir açık proje} other{Keşfedilecek # açık proje}}", "DISCOVER_SUBTITLE": "{projects, plural, one{Keşfedilecek bir açık proje} other{Keşfedilecek # açık proje}}",
"MOST_ACTIVE": "En hareketli", "MOST_ACTIVE": "En hareketli",
@ -1468,6 +1470,8 @@
"CLEAR": "Filtreleri kaldır" "CLEAR": "Filtreleri kaldır"
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "Birşeyler yazın...", "INPUT_PLACEHOLDER": "Birşeyler yazın...",
"ACTION_TITLE": "Ara", "ACTION_TITLE": "Ara",
"RESULTS": "Arama sonuçları" "RESULTS": "Arama sonuçları"

View File

@ -1446,6 +1446,8 @@
} }
}, },
"DISCOVER": { "DISCOVER": {
"PAGE_TITLE": "Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"DISCOVER_TITLE": "發現更多專案", "DISCOVER_TITLE": "發現更多專案",
"DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}", "DISCOVER_SUBTITLE": "{projects, plural, one{One public project to discover} other{# public projects to discover}}",
"MOST_ACTIVE": "最活躍", "MOST_ACTIVE": "最活躍",
@ -1468,6 +1470,8 @@
"CLEAR": "清除過濾器 " "CLEAR": "清除過濾器 "
}, },
"SEARCH": { "SEARCH": {
"PAGE_TITLE": "Search - Discover projects - Taiga",
"PAGE_DESCRIPTION": "Searchable directory of Public Projects in Taiga. Explore backlogs, timelines, issues, and teams. Check out the most liked or most active projects. Filter by Kanban or Scrum.",
"INPUT_PLACEHOLDER": "輸入文字", "INPUT_PLACEHOLDER": "輸入文字",
"ACTION_TITLE": "搜尋", "ACTION_TITLE": "搜尋",
"RESULTS": "搜尋結果" "RESULTS": "搜尋結果"

View File

@ -20,10 +20,15 @@
class DiscoverHomeController class DiscoverHomeController
@.$inject = [ @.$inject = [
'$tgLocation', '$tgLocation',
'$tgNavUrls' '$tgNavUrls',
'tgAppMetaService',
'$translate'
] ]
constructor: (@location, @navUrls) -> constructor: (@location, @navUrls, @appMetaService, @translate) ->
title = @translate.instant("DISCOVER.PAGE_TITLE")
description = @translate.instant("DISCOVER.PAGE_DESCRIPTION")
@appMetaService.setAll(title, description)
onSubmit: (q) -> onSubmit: (q) ->
url = @navUrls.resolve('discover-search') url = @navUrls.resolve('discover-search')

View File

@ -22,6 +22,19 @@ describe "DiscoverHomeController", ->
$controller = null $controller = null
mocks = {} mocks = {}
_mockTranslate = () ->
mocks.translate = {}
mocks.translate.instant = sinon.stub()
$provide.value "$translate", mocks.translate
_mockAppMetaService = () ->
mocks.appMetaService = {
setAll: sinon.spy()
}
$provide.value "tgAppMetaService", mocks.appMetaService
_mockLocation = -> _mockLocation = ->
mocks.location = {} mocks.location = {}
@ -40,6 +53,8 @@ describe "DiscoverHomeController", ->
module (_$provide_) -> module (_$provide_) ->
$provide = _$provide_ $provide = _$provide_
_mockTranslate()
_mockAppMetaService()
_mockLocation() _mockLocation()
_mockNavUrls() _mockNavUrls()
@ -54,6 +69,18 @@ describe "DiscoverHomeController", ->
_mocks() _mocks()
_setup() _setup()
it "initialize meta data", () ->
mocks.translate.instant
.withArgs('DISCOVER.PAGE_TITLE')
.returns('meta-title')
mocks.translate.instant
.withArgs('DISCOVER.PAGE_DESCRIPTION')
.returns('meta-description')
ctrl = $controller('DiscoverHome')
expect(mocks.appMetaService.setAll.calledWithExactly("meta-title", "meta-description")).to.be.true
it "onSubmit redirect to discover search", () -> it "onSubmit redirect to discover search", () ->
mocks.navUrls.resolve = sinon.stub().withArgs('discover-search').returns('url') mocks.navUrls.resolve = sinon.stub().withArgs('discover-search').returns('url')
@ -68,4 +95,4 @@ describe "DiscoverHomeController", ->
ctrl.onSubmit('query') ctrl.onSubmit('query')
expect(pathSpy).to.have.been.calledWith('url'); expect(pathSpy).to.have.been.calledWith('url')

View File

@ -21,10 +21,12 @@ class DiscoverSearchController
@.$inject = [ @.$inject = [
'$routeParams', '$routeParams',
'tgDiscoverProjectsService', 'tgDiscoverProjectsService',
'$route' '$route',
'tgAppMetaService',
'$translate'
] ]
constructor: (@routeParams, @discoverProjectsService, @route) -> constructor: (@routeParams, @discoverProjectsService, @route, @appMetaService, @translate) ->
@.page = 1 @.page = 1
taiga.defineImmutableProperty @, "searchResult", () => return @discoverProjectsService.searchResult taiga.defineImmutableProperty @, "searchResult", () => return @discoverProjectsService.searchResult
@ -38,6 +40,10 @@ class DiscoverSearchController
@.loadingList = false @.loadingList = false
@.loadingPagination = false @.loadingPagination = false
title = @translate.instant("DISCOVER.SEARCH.PAGE_TITLE")
description = @translate.instant("DISCOVER.SEARCH.PAGE_DESCRIPTION")
@appMetaService.setAll(title, description)
fetch: () -> fetch: () ->
@.page = 1 @.page = 1

View File

@ -22,6 +22,19 @@ describe "DiscoverSearch", ->
$controller = null $controller = null
mocks = {} mocks = {}
_mockTranslate = () ->
mocks.translate = {}
mocks.translate.instant = sinon.stub()
$provide.value "$translate", mocks.translate
_mockAppMetaService = () ->
mocks.appMetaService = {
setAll: sinon.spy()
}
$provide.value "tgAppMetaService", mocks.appMetaService
_mockRouteParams = -> _mockRouteParams = ->
mocks.routeParams = {} mocks.routeParams = {}
@ -46,6 +59,8 @@ describe "DiscoverSearch", ->
module (_$provide_) -> module (_$provide_) ->
$provide = _$provide_ $provide = _$provide_
_mockTranslate()
_mockAppMetaService()
_mockRoute() _mockRoute()
_mockRouteParams() _mockRouteParams()
_mockDiscoverProjects() _mockDiscoverProjects()
@ -65,6 +80,18 @@ describe "DiscoverSearch", ->
_setup() _setup()
it "initialize meta data", () ->
mocks.translate.instant
.withArgs('DISCOVER.SEARCH.PAGE_TITLE')
.returns('meta-title')
mocks.translate.instant
.withArgs('DISCOVER.SEARCH.PAGE_DESCRIPTION')
.returns('meta-description')
ctrl = $controller('DiscoverSearch')
expect(mocks.appMetaService.setAll.calledWithExactly("meta-title", "meta-description")).to.be.true
it "initialize search params", () -> it "initialize search params", () ->
mocks.routeParams.text = 'text' mocks.routeParams.text = 'text'
mocks.routeParams.filter = 'filter' mocks.routeParams.filter = 'filter'