Giter Club home page Giter Club logo

Comments (11)

natewalck avatar natewalck commented on July 22, 2024

From [email protected] on September 02, 2010 09:38:30

I'll probably need some help on this; English is the only language value that shows up for me in the dist files, so it's hard for me to test other languages. I'm actually surprised that language localization issues haven't come up before now...

Status: Accepted

from munki.

natewalck avatar natewalck commented on July 22, 2024

From vongablersahm on September 02, 2010 11:15:23

I am not sure how the language for the updates catalog is selected. I would guess it is taken from the language the loginwindow has been set to. Individual users could have different language settings for their session, but munki's software update runs as root and has no easy way to know the current user's language - or even adapt to it.

You can probably reproduce the problem by using /usr/sbin/languagesetup on a 10.5 system to temporarily switch languages.

Attached is an example dist file with german localization:
/Library/Updates/Java für Mac OS X 10.5 Update 5/Java für Mac OS X 10.5 Update 5.dist

from munki.

natewalck avatar natewalck commented on July 22, 2024

From [email protected] on September 02, 2010 12:08:01

I can't seem to force any language other than English. But maybe we don't have to care, and can just grab the first localized string regardless of language. Can you try the attached file as a replacement for appleupdates.py?

Status: Started
Owner: [email protected]

from munki.

natewalck avatar natewalck commented on July 22, 2024

From vongablersahm on September 02, 2010 13:20:51

That works great, the update titles are being parsed correctly.

One little thing: The description for "Java für Mac OS X 10.5 Update 7" does show some spurious lines before the real description. All other updates do show up correctly.

I have attached the two sample files.

from munki.

natewalck avatar natewalck commented on July 22, 2024

From [email protected] on September 02, 2010 14:48:09

appleupdates.py attempts to parse the dist file to get the HTML description, but there are various formats and sometimes it grabs the wrong thing. In the case you mention, the localization contains two things labeled SU_DESCRIPTION. parseDist just grabs everything after the first SU_DESCRIPTION tag. If there's more than one, I'm not sure how parseDist can decide which one is the right one...

from munki.

natewalck avatar natewalck commented on July 22, 2024

From [email protected] on September 02, 2010 16:23:05

Try this new appleupdates.py to see if it does a better job of parsing the dist file description.

from munki.

natewalck avatar natewalck commented on July 22, 2024

From vongablersahm on September 02, 2010 22:49:54

The new appleupdates.py does not change the display of the descriptions, as far as i see. The AppleUpdates.plist remainy identical.

But it looks like the duplicate SU_DESCRIPTION tags are a localization error on Apple's part. You could only try to behave like the SoftwareUpdate.app and always display the last SU_DESCRIPTION there is. Or prefer a SU_DESCRIPTION beginning with "", but that seems like overkill.

from munki.

natewalck avatar natewalck commented on July 22, 2024

From [email protected] on September 03, 2010 06:37:19

"You could only try to behave like the SoftwareUpdate.app and always display the last SU_DESCRIPTION there is."

The correct one is the last on in this particular case, but there's no guarantee it will always be the correct one.

"Or prefer a SU_DESCRIPTION beginning with "", but that seems like overkill."

They don't always start with an tag...

from munki.

natewalck avatar natewalck commented on July 22, 2024

From [email protected] on September 03, 2010 14:48:22

Try this attached version of appleupdates.py!

from munki.

natewalck avatar natewalck commented on July 22, 2024

From vongablersahm on September 03, 2010 15:41:03

works perfectly!

from munki.

natewalck avatar natewalck commented on July 22, 2024

From [email protected] on September 03, 2010 15:43:04

Great. Marking as fixed.

Status: Fixed

from munki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.