Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Page Titles #551

Closed
billybonks opened this issue Jul 3, 2016 · 12 comments
Closed

Page Titles #551

billybonks opened this issue Jul 3, 2016 · 12 comments
Assignees

Comments

@billybonks
Copy link
Contributor

billybonks commented Jul 3, 2016

We currently assign page titles manually, instead we can make the following abstract classes, automatically figure out the page title, using the route name space.

-AbstractIndexRoute
-AbstractEditRoute
-AbstractModuleRoute
-AbstractDeleteController

i.e we have a titles.js translation that follows the same name spacing as the routes in the application. so for example:

inventory.index the page title will be under either titles.inventory.index = 'asd' or inventory.index.titles = 'asd'.

inventory.index the page title will be under inventory.index.title = 'asd'

the advantage of this is that the:

  • CI will throw and error if a page title translation doesn't exist
  • If needed the developer can always override the existing behaviour
  • keeps title, translations in a tidy format for ever :).
  • automatically fix the remaining titles to be translated :).
@tangollama
Copy link
Member

I like this. @jkleinsc what do you think?

Sent using CloudMagic Email [https://cloudmagic.com/k/d/mailapp?ct=pi&cv=7.11.40&pv=9.3.1&source=email_footer_2]
On Sun, Jul 3, 2016 at 5:04 AM, Sebastien Stettler [email protected] wrote:
We currently assign page titles manually, instead we can make the following abstract classes, automatically figure out the page title, using the route name space.

-AbstractIndexRoute
-AbstractEditRoute
-AbstractModuleRoute
-AbstractDeleteController

i.e we have a titles.js translation that follows the same name spacing as the routes in the application. so for example:

inventory.index the page title will be under either titles.inventory.index = 'asd' or inventory.index.titles = 'asd' .

the advantage of this is that the:

  • CI will throw and error if a page title translation doesn't exist
  • If needed the developer can always override the existing behaviour
  • keeps title, translations in a tidy format for ever :).
  • automatically fix the remaining titles to be translated :).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub [https://github.com//issues/551] , or mute the thread [https://github.com/notifications/unsubscribe/AA4t7SWWUQh5MJawyVIYIz3pUYaqDTEiks5qR3sqgaJpZM4JD1QT] .

@billybonks billybonks mentioned this issue Jul 4, 2016
@jkleinsc
Copy link
Member

jkleinsc commented Jul 6, 2016

@billybonks I think this is a great idea. I would prefer the path to beinventory.index.title = 'asd'

@billybonks
Copy link
Contributor Author

ye that is better 👍, also allows us to use route structure for other things if needed

@tangollama tangollama added help wanted indicates that an issue is open for contributions localization LOE: < 1 week labels Jul 22, 2016
@tangollama tangollama added Hack Day help wanted indicates that an issue is open for contributions and removed help wanted indicates that an issue is open for contributions labels Sep 17, 2016
@taras
Copy link
Contributor

taras commented Sep 24, 2016

@wolfieorama would like to work on this issue. I'd like to assign it to him. No sure why it's not letting me.

@jkleinsc jkleinsc added in progress indicates that issue/pull request is currently being worked on and removed help wanted indicates that an issue is open for contributions labels Oct 5, 2016
@yasirunilan
Copy link

can i work on this?

@jkleinsc
Copy link
Member

@yasirunilan @wolfieorama is currently assigned to this issue.

@wolfieorama are you working on this?

@wolfieorama
Copy link

@jkleinsc yes should be next in line

@yasirunilan
Copy link

I'm working on it

@wolfieorama
Copy link

cool no worries

@tangollama
Copy link
Member

@yasirunilan any progress here?

@yasirunilan
Copy link

@tangollama sorry couldn't do it

@jkleinsc jkleinsc added help wanted indicates that an issue is open for contributions and removed in progress indicates that issue/pull request is currently being worked on labels Apr 20, 2017
@stale
Copy link

stale bot commented Aug 7, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix indicates an issue/pull request will not be worked on label Aug 7, 2019
@fox1t fox1t removed Hack Day help wanted indicates that an issue is open for contributions labels Aug 7, 2019
@stale stale bot removed the wontfix indicates an issue/pull request will not be worked on label Aug 7, 2019
@fox1t fox1t closed this as completed Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants