https://discord.umbraco.com logo
Join Discord
Channels
help-with-umbraco
news
event-news
social
help-with-other
contributing
package-development
codegarden-conference
hacktoberfest
show-and-tell
jobs-and-gigs
meta
Powered by
# hacktoberfest
  • j

    Jemayn

    10/20/2021, 6:50 AM
    Think @User did something like this and tweeted about it 🤔
  • m

    Mike Chambers

    10/20/2021, 7:45 AM
    https://dev.to/mattbrailsford/automating-umbraco-package-build-deployments-with-nuke-build-gitversion-and-azure-devops-e82 was this it?
  • j

    Jemayn

    10/20/2021, 7:46 AM
    That's indeed the one I thought of 🙂
  • c

    CodeSharePaul

    10/20/2021, 10:16 AM
    Later I will be doing my last PR for hacktoberfest. I want to make add a title to the app header buttons so when you hover they say search and help like this
  • c

    CodeSharePaul

    10/20/2021, 10:16 AM
  • c

    CodeSharePaul

    10/20/2021, 10:16 AM
    Does anyone know how I can localise these title attributes please?
  • c

    CodeSharePaul

    10/20/2021, 10:16 AM
  • w

    Warren Buckley

    10/20/2021, 10:17 AM
    Happy to help on a lunchtime discord hack @User if not
  • m

    Matt Wise

    10/20/2021, 10:18 AM
    I can think of a way set a variable in the controller
  • c

    CodeSharePaul

    10/20/2021, 10:18 AM
    Hi @User I'm getting ready for holiday so won't have any free time. I just want to get this PR in before bed tonight
  • c

    CodeSharePaul

    10/20/2021, 10:19 AM
    Thanks for the offer though
  • w

    Warren Buckley

    10/20/2021, 10:19 AM
    Ah nice - off anywhere fun?!
  • c

    CodeSharePaul

    10/20/2021, 10:19 AM
    Tour of the south west, moy loverr
  • w

    Warren Buckley

    10/20/2021, 10:20 AM
    Like Matt said you could localize some variables in controller and set them on Angular model and use them in the view
  • w

    Warren Buckley

    10/20/2021, 10:20 AM
    Nice - enjoy 🙂
  • c

    CodeSharePaul

    10/20/2021, 10:20 AM
    message
  • c

    CodeSharePaul

    10/20/2021, 10:21 AM
    The file isn't obvious where the controller is for it
  • w

    Warren Buckley

    10/20/2021, 10:24 AM
    umbappheader.directive.js
    Umbraco.Web.UI.Client/src/common/directives/components/application
  • w

    Warren Buckley

    10/20/2021, 10:25 AM
    Copy code
    * <!-- Attribute -->
        * <input type="text" localize="placeholder" placeholder="@placeholders_entername" />
        * <input type="text" localize="placeholder,title" title="@section_key" placeholder="@placeholders_entername" />
        * <div localize="title" title="@section_key"></div>
  • w

    Warren Buckley

    10/20/2021, 10:25 AM
    <div localize="title" title="@section_key"></div>
  • w

    Warren Buckley

    10/20/2021, 10:26 AM
    Note the localize on the div is saying which attribute on the element itself to translate
  • w

    Warren Buckley

    10/20/2021, 10:26 AM
    then the title attribute contains the key to translate
  • w

    Warren Buckley

    10/20/2021, 10:27 AM
    So you could do it direct in the view of the component if you wanted to @User
  • m

    Matt Wise

    10/20/2021, 10:27 AM
    I knew there had to be a better way 😄
  • c

    CodeSharePaul

    10/20/2021, 10:28 AM
    @User brilliant, thank you
  • c

    CodeSharePaul

    10/20/2021, 10:35 AM
    Worked a treat, thanks
  • w

    Warren Buckley

    10/20/2021, 10:36 AM
    Brill 😄
  • p

    Patrick de Mooij

    10/20/2021, 7:48 PM
    Don't know if this is the best place to ask this, but will see what everyone thinks. I've been wanting to look at performance for Umbraco a bit and I noticed that a lot of memory goes towards the LocalizedTextService for containing all the translations within the backoffice. This is probably because all languages are being loaded in. Would it maybe be smart to only load in the languages that are actually used within the backoffice? Or is there a reason that everything is loaded in at the start?
  • p

    Patrick de Mooij

    10/20/2021, 7:48 PM
    Or maybe I am totally looking in the wrong spot....
  • p

    Patrick de Mooij

    10/21/2021, 7:20 AM
    Also created an issue for it: https://github.com/umbraco/Umbraco-CMS/issues/11438
1...141516...33Latest